Skip to content

Commit

Permalink
Installation problem with postgresql (luyadev#343)
Browse files Browse the repository at this point in the history
* Installation problem with postgresql

close luyadev/luya/issues/1792

* Add primary key via `addPrimaryKey` function

* Update CHANGELOG.md
  • Loading branch information
boehsermoe authored and slowfox089 committed Dec 10, 2020
1 parent 547d402 commit 3b125d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ In order to read more about upgrading and BC breaks have a look at the [UPGRADE

## 2.2.0 (in progress)

### Fixed

+ [#343](https://github.com/luyadev/luya-module-admin/pull/343) Fixed bug with migrations when using PostgreSQL

### Added

+ [#338](https://github.com/luyadev/luya-module-admin/pull/338) Toggle button for ngRestModel to switch between enable and disable status.
Expand Down
3 changes: 2 additions & 1 deletion src/migrations/m150915_081559_admin_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ public function safeUp()
$this->createTable('{{%admin_config}}', [
'name' => $this->string(80),
'value' => $this->string(255)->notNull(),
'PRIMARY KEY(name)',
]);

$this->addPrimaryKey('name', '{{%admin_config}}', 'name');
}

public function safeDown()
Expand Down

0 comments on commit 3b125d3

Please sign in to comment.