diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-09-06 17:31:36 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2021-09-06 17:31:36 +0200 |
commit | 378cc922c429524b872e83c7b3842eb86bc4b770 (patch) | |
tree | dbb0e7ef8ab4d859f8f8d7c71155c5a50bd660b3 /core/Migrations/Version23000Date20210906132259.php | |
parent | d4f97affc1a0ecfaacfbdc26aab820cad1650a06 (diff) | |
download | nextcloud-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.php | 4 |
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; |