Skip to content

Commit

Permalink
Merge pull request #30 from iridance/master
Browse files Browse the repository at this point in the history
Fix create table issue on Postgresql database
  • Loading branch information
Igor Chepurnoy committed Mar 14, 2019
2 parents dc183b3 + da6e96b commit 14bbda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/m160516_095943_init.php
Expand Up @@ -15,8 +15,8 @@ public function up()
$this->createTable('{{%Cart}}', [
'sessionId' => $this->string(),
'cartData' => $this->text(),
'PRIMARY KEY (`sessionId`)',
], $tableOptions);
$this->addPrimaryKey('cart_pk', '{{%Cart}}', 'sessionId');
}

public function down()
Expand Down

0 comments on commit 14bbda6

Please sign in to comment.