summaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-10-24 14:25:35 +0200
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:16 +0100
commit702dcfb72848b36921a310188aa019d810668ebc (patch)
tree449f8965032eda43db1a029f4f13bebedd83029a /core/Migrations
parent5dfc56e925309d637be6f5a69cc16d0baaf20d03 (diff)
downloadnextcloud-server-702dcfb72848b36921a310188aa019d810668ebc.tar.gz
nextcloud-server-702dcfb72848b36921a310188aa019d810668ebc.zip
Make names mandatory
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r--core/Migrations/Version15000Date20180917092725.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Migrations/Version15000Date20180917092725.php b/core/Migrations/Version15000Date20180917092725.php
index 9dbc5efceda..1bcc6382745 100644
--- a/core/Migrations/Version15000Date20180917092725.php
+++ b/core/Migrations/Version15000Date20180917092725.php
@@ -48,6 +48,10 @@ class Version15000Date20180917092725 extends SimpleMigrationStep {
'autoincrement' => true,
'notnull' => true,
]);
+ $table->addColumn('name', Type::STRING, [
+ 'notnull' => true,
+ 'length' => 64,
+ ]);
$table->setPrimaryKey(['id']);
}