From 378cc922c429524b872e83c7b3842eb86bc4b770 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 6 Sep 2021 17:31:36 +0200 Subject: Adjust logic to store period instead of current timestamp Signed-off-by: Lukas Reschke --- core/Migrations/Version23000Date20210906132259.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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; -- cgit v1.2.3