Permalink
Browse files

fixed wrong unit test

  • Loading branch information...
1 parent 81dea0e commit 70e92c10740781dddb3bb53bd25469221ba0205f @cebe cebe committed Jan 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 70e92c1

Please sign in to comment.