Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed wrong unit test

  • Loading branch information...
commit 70e92c10740781dddb3bb53bd25469221ba0205f 1 parent 81dea0e
@cebe cebe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/framework/db/schema/CPostgres2Test.php
View
2  tests/framework/db/schema/CPostgres2Test.php
@@ -146,7 +146,7 @@ public function testCreateIndex()
$this->assertEquals($expect, $sql);
$sql=$this->db->schema->createIndex('id_pk','test',array('id1','id2'),true);
- $expect='CREATE UNIQUE INDEX "id_pk" ON "test" ("id1", "id2")';
+ $expect='ALTER TABLE ONLY "test" ADD CONSTRAINT "id_pk" UNIQUE ("id1", "id2")';
$this->assertEquals($expect, $sql);
}
Please sign in to comment.
Something went wrong with that request. Please try again.