diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-10 09:33:29 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-10 15:36:27 +0100 |
commit | 5b5aebbf66e7559aac73eb82b236b052b6a1ae3e (patch) | |
tree | 471748128c3294eee531a7f1c94dff976af6c8b4 /core/Migrations/Version13000Date20170718121200.php | |
parent | fbda2d1d253b99a4e83970e023ede42faad87966 (diff) | |
download | nextcloud-server-5b5aebbf66e7559aac73eb82b236b052b6a1ae3e.tar.gz nextcloud-server-5b5aebbf66e7559aac73eb82b236b052b6a1ae3e.zip |
Replace the credentials table with one that can have empty user
Primary key columns on Oracle can not have empty strings
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations/Version13000Date20170718121200.php')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 2627e50bdb7..ba5f72588a6 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -811,22 +811,22 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { $table->addUniqueIndex(['user_id', 'object_type', 'object_id'], 'comments_marker_index'); } - if (!$schema->hasTable('credentials')) { - $table = $schema->createTable('credentials'); - $table->addColumn('user', 'string', [ - 'notnull' => false, - 'length' => 64, - ]); - $table->addColumn('identifier', 'string', [ - 'notnull' => true, - 'length' => 64, - ]); - $table->addColumn('credentials', 'text', [ - 'notnull' => false, - ]); - $table->setPrimaryKey(['user', 'identifier']); - $table->addIndex(['user'], 'credentials_user'); - } +// if (!$schema->hasTable('credentials')) { +// $table = $schema->createTable('credentials'); +// $table->addColumn('user', 'string', [ +// 'notnull' => false, +// 'length' => 64, +// ]); +// $table->addColumn('identifier', 'string', [ +// 'notnull' => true, +// 'length' => 64, +// ]); +// $table->addColumn('credentials', 'text', [ +// 'notnull' => false, +// ]); +// $table->setPrimaryKey(['user', 'identifier']); +// $table->addIndex(['user'], 'credentials_user'); +// } if (!$schema->hasTable('admin_sections')) { $table = $schema->createTable('admin_sections'); |