summaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version13000Date20170718121200.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-10 09:33:29 +0100
committerJoas Schilling <coding@schilljs.com>2020-11-10 15:36:27 +0100
commit5b5aebbf66e7559aac73eb82b236b052b6a1ae3e (patch)
tree471748128c3294eee531a7f1c94dff976af6c8b4 /core/Migrations/Version13000Date20170718121200.php
parentfbda2d1d253b99a4e83970e023ede42faad87966 (diff)
downloadnextcloud-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.php32
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');