diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-10 09:34:57 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-10 15:36:27 +0100 |
commit | d5df033ede1f2b19b87c365b1f808130023edf17 (patch) | |
tree | d00503789c2e1188d59726e221dd9445e858f784 /core/Migrations/Version13000Date20170718121200.php | |
parent | 5b5aebbf66e7559aac73eb82b236b052b6a1ae3e (diff) | |
download | nextcloud-server-d5df033ede1f2b19b87c365b1f808130023edf17.tar.gz nextcloud-server-d5df033ede1f2b19b87c365b1f808130023edf17.zip |
Create primary keys on all tables and add a command to create the afterwards
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations/Version13000Date20170718121200.php')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index ba5f72588a6..2a47bb52cfc 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -673,7 +673,8 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'default' => 0, 'unsigned' => true, ]); - $table->addUniqueIndex(['objecttype', 'objectid', 'systemtagid'], 'mapping'); + $table->setPrimaryKey(['objecttype', 'objectid', 'systemtagid'], 'som_pk'); +// $table->addUniqueIndex(['objecttype', 'objectid', 'systemtagid'], 'mapping'); } if (!$schema->hasTable('systemtag_group')) { @@ -808,7 +809,8 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'default' => '', ]); $table->addIndex(['object_type', 'object_id'], 'comments_marker_object_index'); - $table->addUniqueIndex(['user_id', 'object_type', 'object_id'], 'comments_marker_index'); + $table->setPrimaryKey(['user_id', 'object_type', 'object_id'], 'crm_pk'); +// $table->addUniqueIndex(['user_id', 'object_type', 'object_id'], 'comments_marker_index'); } // if (!$schema->hasTable('credentials')) { |