summaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version23000Date20210906132259.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-09-06 17:31:36 +0200
committerLukas Reschke <lukas@statuscode.ch>2021-09-06 17:31:36 +0200
commit378cc922c429524b872e83c7b3842eb86bc4b770 (patch)
treedbb0e7ef8ab4d859f8f8d7c71155c5a50bd660b3 /core/Migrations/Version23000Date20210906132259.php
parentd4f97affc1a0ecfaacfbdc26aab820cad1650a06 (diff)
downloadnextcloud-server-378cc922c429524b872e83c7b3842eb86bc4b770.tar.gz
nextcloud-server-378cc922c429524b872e83c7b3842eb86bc4b770.zip
Adjust logic to store period instead of current timestamp
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Migrations/Version23000Date20210906132259.php')
-rw-r--r--core/Migrations/Version23000Date20210906132259.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Migrations/Version23000Date20210906132259.php b/core/Migrations/Version23000Date20210906132259.php
index b0eb7bc4dcc..c4e0c42075c 100644
--- a/core/Migrations/Version23000Date20210906132259.php
+++ b/core/Migrations/Version23000Date20210906132259.php
@@ -35,11 +35,11 @@ class Version23000Date20210906132259 extends SimpleMigrationStep {
'notnull' => true,
'length' => 128,
]);
- $table->addColumn('timestamp', 'datetime', [
+ $table->addColumn('delete_after', 'datetime', [
'notnull' => true,
]);
$table->addIndex(['hash'], 'ratelimit_hash_idx');
- $table->addIndex(['timestamp'], 'ratelimit_timestamp_idx');
+ $table->addIndex(['delete_after'], 'ratelimit_delete_after_idx');
}
return $schema;