From 23f6a5272604ec5e64f05e7f435f87d68d2448c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czaus?= Date: Wed, 5 Nov 2025 22:17:30 +0100 Subject: [PATCH] feat: Add index to registration and login flows --- ...eate_selfservice_login_flows_expires_at_index.mysql.down.sql | 1 + ...create_selfservice_login_flows_expires_at_index.mysql.up.sql | 2 ++ ...lfservice_registration_flows_expires_at_index.mysql.down.sql | 1 + ...selfservice_registration_flows_expires_at_index.mysql.up.sql | 2 ++ 4 files changed, 6 insertions(+) create mode 100644 persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.down.sql create mode 100644 persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.up.sql create mode 100644 persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.down.sql create mode 100644 persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.up.sql diff --git a/persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.down.sql b/persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.down.sql new file mode 100644 index 000000000000..c92f54f58c14 --- /dev/null +++ b/persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.down.sql @@ -0,0 +1 @@ +DROP INDEX `selfservice_login_flows_expires_at_idx` ON `selfservice_login_flows`; diff --git a/persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.up.sql b/persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.up.sql new file mode 100644 index 000000000000..cdf4f7baf0d1 --- /dev/null +++ b/persistence/sql/migrations/sql/202511031143000000000_create_selfservice_login_flows_expires_at_index.mysql.up.sql @@ -0,0 +1,2 @@ +CREATE INDEX selfservice_login_flows_expires_at_idx + ON selfservice_login_flows (expires_at); diff --git a/persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.down.sql b/persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.down.sql new file mode 100644 index 000000000000..15bf039a4973 --- /dev/null +++ b/persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.down.sql @@ -0,0 +1 @@ +DROP INDEX selfservice_registration_flows_expires_at_idx ON selfservice_registration_flows; diff --git a/persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.up.sql b/persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.up.sql new file mode 100644 index 000000000000..f5f326291004 --- /dev/null +++ b/persistence/sql/migrations/sql/202511031143000000001_create_selfservice_registration_flows_expires_at_index.mysql.up.sql @@ -0,0 +1,2 @@ +CREATE INDEX selfservice_registration_flows_expires_at_idx + ON selfservice_registration_flows (expires_at);