diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-06-28 21:58:54 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-06-29 09:11:04 +0200 |
commit | 89c3010d14725e8c6e867b8ea65e2677a3775874 (patch) | |
tree | 23ee6cb01a51d04f7aa529a335cc97f542dda101 /core | |
parent | 4e073010df2aef873b8ae885c50e5e5d614c615b (diff) | |
download | nextcloud-server-89c3010d14725e8c6e867b8ea65e2677a3775874.tar.gz nextcloud-server-89c3010d14725e8c6e867b8ea65e2677a3775874.zip |
fix updating the db row due to lacking id col
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Migrations/Version14000Date20180626223656.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/Migrations/Version14000Date20180626223656.php b/core/Migrations/Version14000Date20180626223656.php index 72348aca3a3..fb7a6c647bc 100644 --- a/core/Migrations/Version14000Date20180626223656.php +++ b/core/Migrations/Version14000Date20180626223656.php @@ -33,6 +33,12 @@ class Version14000Date20180626223656 extends SimpleMigrationStep { $schema = $schemaClosure(); if(!$schema->hasTable('whats_new')) { $table = $schema->createTable('whats_new'); + $table->addColumn('id', 'integer', [ + 'autoincrement' => true, + 'notnull' => true, + 'length' => 4, + 'unsigned' => true, + ]); $table->addColumn('version', 'string', [ 'notnull' => true, 'length' => 64, @@ -53,7 +59,8 @@ class Version14000Date20180626223656 extends SimpleMigrationStep { 'notnull' => true, 'default' => '', ]); - $table->setPrimaryKey(['version']); + $table->setPrimaryKey(['id']); + $table->addUniqueIndex(['version']); $table->addIndex(['version', 'etag'], 'version_etag_idx'); } |