aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version23000Date20210906132259.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-09-13 10:43:01 +0200
committerGitHub <noreply@github.com>2021-09-13 10:43:01 +0200
commit358eaba7dd45e5c5dbce44011bd7eadd88fe8534 (patch)
tree46799ecf5a1f46f6f90266bed81075d5f22073fb /core/Migrations/Version23000Date20210906132259.php
parent471167019c7c9071fa815b2c92691f65370a43b9 (diff)
downloadnextcloud-server-358eaba7dd45e5c5dbce44011bd7eadd88fe8534.tar.gz
nextcloud-server-358eaba7dd45e5c5dbce44011bd7eadd88fe8534.zip
Apply suggestions from code review
Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Diffstat (limited to 'core/Migrations/Version23000Date20210906132259.php')
-rw-r--r--core/Migrations/Version23000Date20210906132259.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Migrations/Version23000Date20210906132259.php b/core/Migrations/Version23000Date20210906132259.php
index b4568ab069c..e65846f40b9 100644
--- a/core/Migrations/Version23000Date20210906132259.php
+++ b/core/Migrations/Version23000Date20210906132259.php
@@ -31,13 +31,14 @@ class Version23000Date20210906132259 extends SimpleMigrationStep {
'notnull' => true,
'length' => 128,
]);
- $table->addColumn('delete_after', 'datetime', [
+ $table->addColumn('delete_after', Types::DATETIME, [
'notnull' => true,
]);
$table->addIndex(['hash'], 'ratelimit_hash_idx');
$table->addIndex(['delete_after'], 'ratelimit_delete_after_idx');
+ return $schema;
}
- return $schema;
+ return null;
}
}