diff --git a/iam-persistence/src/main/resources/db/migration/h2/V101__add_refresh_token_value_index.sql b/iam-persistence/src/main/resources/db/migration/h2/V101__add_refresh_token_value_index.sql new file mode 100644 index 000000000..c16a71024 --- /dev/null +++ b/iam-persistence/src/main/resources/db/migration/h2/V101__add_refresh_token_value_index.sql @@ -0,0 +1 @@ +ALTER TABLE refresh_token ADD CONSTRAINT rt_tvh_idx UNIQUE (token_value); \ No newline at end of file diff --git a/iam-persistence/src/main/resources/db/migration/mysql/V101__add_refresh_token_value_index.sql b/iam-persistence/src/main/resources/db/migration/mysql/V101__add_refresh_token_value_index.sql new file mode 100644 index 000000000..d0cb47538 --- /dev/null +++ b/iam-persistence/src/main/resources/db/migration/mysql/V101__add_refresh_token_value_index.sql @@ -0,0 +1 @@ +ALTER TABLE refresh_token ADD CONSTRAINT rt_tvh_idx UNIQUE (token_value(767)); \ No newline at end of file