Skip to content

Commit

Permalink
fix: defer dropping the old column
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Jun 19, 2023
1 parent c368567 commit 5871f81
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ALTER TABLE selfservice_login_flows ADD COLUMN oauth2_login_challenge UUID NULL;
ALTER TABLE selfservice_registration_flows ADD COLUMN oauth2_login_challenge UUID NULL;
-- ALTER TABLE selfservice_login_flows ADD COLUMN oauth2_login_challenge UUID NULL;
-- ALTER TABLE selfservice_registration_flows ADD COLUMN oauth2_login_challenge UUID NULL;

ALTER TABLE selfservice_login_flows DROP COLUMN oauth2_login_challenge_data;
ALTER TABLE selfservice_registration_flows DROP COLUMN oauth2_login_challenge_data;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ALTER TABLE selfservice_login_flows ADD COLUMN oauth2_login_challenge CHAR(36) NULL;
ALTER TABLE selfservice_registration_flows ADD COLUMN oauth2_login_challenge CHAR(36) NULL;
-- ALTER TABLE selfservice_login_flows ADD COLUMN oauth2_login_challenge CHAR(36) NULL;
-- ALTER TABLE selfservice_registration_flows ADD COLUMN oauth2_login_challenge CHAR(36) NULL;

ALTER TABLE selfservice_login_flows DROP COLUMN oauth2_login_challenge_data;
ALTER TABLE selfservice_registration_flows DROP COLUMN oauth2_login_challenge_data;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ALTER TABLE `selfservice_login_flows` ADD COLUMN `oauth2_login_challenge` CHAR(36) NULL;
ALTER TABLE `selfservice_registration_flows` ADD COLUMN `oauth2_login_challenge` CHAR(36) NULL;
-- ALTER TABLE `selfservice_login_flows` ADD COLUMN `oauth2_login_challenge` CHAR(36) NULL;
-- ALTER TABLE `selfservice_registration_flows` ADD COLUMN `oauth2_login_challenge` CHAR(36) NULL;

ALTER TABLE "selfservice_login_flows" DROP COLUMN "oauth2_login_challenge_data";
ALTER TABLE "selfservice_registration_flows" DROP COLUMN "oauth2_login_challenge_data";
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ALTER TABLE selfservice_login_flows DROP COLUMN oauth2_login_challenge;
ALTER TABLE selfservice_registration_flows DROP COLUMN oauth2_login_challenge;
-- Drop columns in a later migration.
-- ALTER TABLE selfservice_login_flows DROP COLUMN oauth2_login_challenge;
-- ALTER TABLE selfservice_registration_flows DROP COLUMN oauth2_login_challenge;

ALTER TABLE selfservice_login_flows ADD COLUMN oauth2_login_challenge_data TEXT NULL;
ALTER TABLE selfservice_registration_flows ADD COLUMN oauth2_login_challenge_data TEXT NULL;

0 comments on commit 5871f81

Please sign in to comment.