Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-09-06 18:31:36 +0300
committerLukas Reschke <lukas@statuscode.ch>2021-09-06 18:31:36 +0300
commit378cc922c429524b872e83c7b3842eb86bc4b770 (patch)
treedbb0e7ef8ab4d859f8f8d7c71155c5a50bd660b3 /core/Migrations
parentd4f97affc1a0ecfaacfbdc26aab820cad1650a06 (diff)
Adjust logic to store period instead of current timestamp
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Migrations')
-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;