Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: write request -> flow rename migrations
- Loading branch information
Showing
20 changed files
with
130 additions
and
16 deletions.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.cockroach.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE "selfservice_login_flows" RENAME TO "selfservice_login_requests";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME TO "selfservice_login_request_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME TO "selfservice_login_request_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME TO "selfservice_registration_request_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_registration_flows" RENAME TO "selfservice_registration_requests";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME TO "selfservice_settings_request_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_settings_flows" RENAME TO "selfservice_settings_requests";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME TO "selfservice_recovery_request_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_recovery_flows" RENAME TO "selfservice_recovery_requests";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_verification_flows" RENAME TO "selfservice_verification_requests";COMMIT TRANSACTION;BEGIN TRANSACTION; |
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.cockroach.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE "selfservice_login_request_methods" RENAME TO "selfservice_login_flow_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_login_requests" RENAME TO "selfservice_login_flows";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_login_requests" RENAME TO "selfservice_login_flows";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_registration_request_methods" RENAME TO "selfservice_registration_flow_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_registration_requests" RENAME TO "selfservice_registration_flows";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_settings_request_methods" RENAME TO "selfservice_settings_flow_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_settings_requests" RENAME TO "selfservice_settings_flows";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_recovery_request_methods" RENAME TO "selfservice_recovery_flow_methods";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_recovery_requests" RENAME TO "selfservice_recovery_flows";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_verification_requests" RENAME TO "selfservice_verification_flows";COMMIT TRANSACTION;BEGIN TRANSACTION; |
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.mysql.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE `selfservice_login_flows` RENAME TO `selfservice_login_requests`; | ||
ALTER TABLE `selfservice_login_flow_methods` RENAME TO `selfservice_login_request_methods`; | ||
ALTER TABLE `selfservice_login_flow_methods` RENAME TO `selfservice_login_request_methods`; | ||
ALTER TABLE `selfservice_registration_flow_methods` RENAME TO `selfservice_registration_request_methods`; | ||
ALTER TABLE `selfservice_registration_flows` RENAME TO `selfservice_registration_requests`; | ||
ALTER TABLE `selfservice_settings_flow_methods` RENAME TO `selfservice_settings_request_methods`; | ||
ALTER TABLE `selfservice_settings_flows` RENAME TO `selfservice_settings_requests`; | ||
ALTER TABLE `selfservice_recovery_flow_methods` RENAME TO `selfservice_recovery_request_methods`; | ||
ALTER TABLE `selfservice_recovery_flows` RENAME TO `selfservice_recovery_requests`; | ||
ALTER TABLE `selfservice_verification_flows` RENAME TO `selfservice_verification_requests`; |
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.mysql.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE `selfservice_login_request_methods` RENAME TO `selfservice_login_flow_methods`; | ||
ALTER TABLE `selfservice_login_requests` RENAME TO `selfservice_login_flows`; | ||
ALTER TABLE `selfservice_login_requests` RENAME TO `selfservice_login_flows`; | ||
ALTER TABLE `selfservice_registration_request_methods` RENAME TO `selfservice_registration_flow_methods`; | ||
ALTER TABLE `selfservice_registration_requests` RENAME TO `selfservice_registration_flows`; | ||
ALTER TABLE `selfservice_settings_request_methods` RENAME TO `selfservice_settings_flow_methods`; | ||
ALTER TABLE `selfservice_settings_requests` RENAME TO `selfservice_settings_flows`; | ||
ALTER TABLE `selfservice_recovery_request_methods` RENAME TO `selfservice_recovery_flow_methods`; | ||
ALTER TABLE `selfservice_recovery_requests` RENAME TO `selfservice_recovery_flows`; | ||
ALTER TABLE `selfservice_verification_requests` RENAME TO `selfservice_verification_flows`; |
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.postgres.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE "selfservice_login_flows" RENAME TO "selfservice_login_requests"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME TO "selfservice_login_request_methods"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME TO "selfservice_login_request_methods"; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME TO "selfservice_registration_request_methods"; | ||
ALTER TABLE "selfservice_registration_flows" RENAME TO "selfservice_registration_requests"; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME TO "selfservice_settings_request_methods"; | ||
ALTER TABLE "selfservice_settings_flows" RENAME TO "selfservice_settings_requests"; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME TO "selfservice_recovery_request_methods"; | ||
ALTER TABLE "selfservice_recovery_flows" RENAME TO "selfservice_recovery_requests"; | ||
ALTER TABLE "selfservice_verification_flows" RENAME TO "selfservice_verification_requests"; |
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.postgres.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE "selfservice_login_request_methods" RENAME TO "selfservice_login_flow_methods"; | ||
ALTER TABLE "selfservice_login_requests" RENAME TO "selfservice_login_flows"; | ||
ALTER TABLE "selfservice_login_requests" RENAME TO "selfservice_login_flows"; | ||
ALTER TABLE "selfservice_registration_request_methods" RENAME TO "selfservice_registration_flow_methods"; | ||
ALTER TABLE "selfservice_registration_requests" RENAME TO "selfservice_registration_flows"; | ||
ALTER TABLE "selfservice_settings_request_methods" RENAME TO "selfservice_settings_flow_methods"; | ||
ALTER TABLE "selfservice_settings_requests" RENAME TO "selfservice_settings_flows"; | ||
ALTER TABLE "selfservice_recovery_request_methods" RENAME TO "selfservice_recovery_flow_methods"; | ||
ALTER TABLE "selfservice_recovery_requests" RENAME TO "selfservice_recovery_flows"; | ||
ALTER TABLE "selfservice_verification_requests" RENAME TO "selfservice_verification_flows"; |
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.sqlite3.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE "selfservice_login_flows" RENAME TO "selfservice_login_requests"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME TO "selfservice_login_request_methods"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME TO "selfservice_login_request_methods"; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME TO "selfservice_registration_request_methods"; | ||
ALTER TABLE "selfservice_registration_flows" RENAME TO "selfservice_registration_requests"; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME TO "selfservice_settings_request_methods"; | ||
ALTER TABLE "selfservice_settings_flows" RENAME TO "selfservice_settings_requests"; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME TO "selfservice_recovery_request_methods"; | ||
ALTER TABLE "selfservice_recovery_flows" RENAME TO "selfservice_recovery_requests"; | ||
ALTER TABLE "selfservice_verification_flows" RENAME TO "selfservice_verification_requests"; |
9 changes: 8 additions & 1 deletion
9
persistence/sql/migrations/sql/20200810161022_flow_rename.sqlite3.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
ALTER TABLE "selfservice_login_request_methods" RENAME TO "selfservice_login_flow_methods"; | ||
ALTER TABLE "selfservice_login_requests" RENAME TO "selfservice_login_flows"; | ||
ALTER TABLE "selfservice_login_requests" RENAME TO "selfservice_login_flows"; | ||
ALTER TABLE "selfservice_registration_request_methods" RENAME TO "selfservice_registration_flow_methods"; | ||
ALTER TABLE "selfservice_registration_requests" RENAME TO "selfservice_registration_flows"; | ||
ALTER TABLE "selfservice_settings_request_methods" RENAME TO "selfservice_settings_flow_methods"; | ||
ALTER TABLE "selfservice_settings_requests" RENAME TO "selfservice_settings_flows"; | ||
ALTER TABLE "selfservice_recovery_request_methods" RENAME TO "selfservice_recovery_flow_methods"; | ||
ALTER TABLE "selfservice_recovery_requests" RENAME TO "selfservice_recovery_flows"; | ||
ALTER TABLE "selfservice_verification_requests" RENAME TO "selfservice_verification_flows"; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.cockroach.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_flow_id" TO "selfservice_login_request_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_flow_id" TO "selfservice_login_request_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME COLUMN "selfservice_registration_flow_id" TO "selfservice_registration_request_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME COLUMN "selfservice_settings_flow_id" TO "selfservice_settings_request_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME COLUMN "selfservice_recovery_flow_id" TO "selfservice_recovery_request_id";COMMIT TRANSACTION;BEGIN TRANSACTION; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.cockroach.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_request_id" TO "selfservice_login_flow_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_request_id" TO "selfservice_login_flow_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME COLUMN "selfservice_registration_request_id" TO "selfservice_registration_flow_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME COLUMN "selfservice_recovery_request_id" TO "selfservice_recovery_flow_id";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME COLUMN "selfservice_settings_request_id" TO "selfservice_settings_flow_id";COMMIT TRANSACTION;BEGIN TRANSACTION; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.mysql.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE `selfservice_login_flow_methods` CHANGE `selfservice_login_flow_id` `selfservice_login_request_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_login_flow_methods` CHANGE `selfservice_login_flow_id` `selfservice_login_request_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_registration_flow_methods` CHANGE `selfservice_registration_flow_id` `selfservice_registration_request_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_settings_flow_methods` CHANGE `selfservice_settings_flow_id` `selfservice_settings_request_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_recovery_flow_methods` CHANGE `selfservice_recovery_flow_id` `selfservice_recovery_request_id` char(36) NOT NULL; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.mysql.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE `selfservice_login_flow_methods` CHANGE `selfservice_login_request_id` `selfservice_login_flow_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_login_flow_methods` CHANGE `selfservice_login_request_id` `selfservice_login_flow_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_registration_flow_methods` CHANGE `selfservice_registration_request_id` `selfservice_registration_flow_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_recovery_flow_methods` CHANGE `selfservice_recovery_request_id` `selfservice_recovery_flow_id` char(36) NOT NULL; | ||
ALTER TABLE `selfservice_settings_flow_methods` CHANGE `selfservice_settings_request_id` `selfservice_settings_flow_id` char(36) NOT NULL; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.postgres.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_flow_id" TO "selfservice_login_request_id"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_flow_id" TO "selfservice_login_request_id"; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME COLUMN "selfservice_registration_flow_id" TO "selfservice_registration_request_id"; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME COLUMN "selfservice_settings_flow_id" TO "selfservice_settings_request_id"; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME COLUMN "selfservice_recovery_flow_id" TO "selfservice_recovery_request_id"; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.postgres.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_request_id" TO "selfservice_login_flow_id"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_request_id" TO "selfservice_login_flow_id"; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME COLUMN "selfservice_registration_request_id" TO "selfservice_registration_flow_id"; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME COLUMN "selfservice_recovery_request_id" TO "selfservice_recovery_flow_id"; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME COLUMN "selfservice_settings_request_id" TO "selfservice_settings_flow_id"; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.sqlite3.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_flow_id" TO "selfservice_login_request_id"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_flow_id" TO "selfservice_login_request_id"; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME COLUMN "selfservice_registration_flow_id" TO "selfservice_registration_request_id"; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME COLUMN "selfservice_settings_flow_id" TO "selfservice_settings_request_id"; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME COLUMN "selfservice_recovery_flow_id" TO "selfservice_recovery_request_id"; |
5 changes: 4 additions & 1 deletion
5
persistence/sql/migrations/sql/20200810162450_flow_fields_rename.sqlite3.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_request_id" TO "selfservice_login_flow_id"; | ||
ALTER TABLE "selfservice_login_flow_methods" RENAME COLUMN "selfservice_login_request_id" TO "selfservice_login_flow_id"; | ||
ALTER TABLE "selfservice_registration_flow_methods" RENAME COLUMN "selfservice_registration_request_id" TO "selfservice_registration_flow_id"; | ||
ALTER TABLE "selfservice_recovery_flow_methods" RENAME COLUMN "selfservice_recovery_request_id" TO "selfservice_recovery_flow_id"; | ||
ALTER TABLE "selfservice_settings_flow_methods" RENAME COLUMN "selfservice_settings_request_id" TO "selfservice_settings_flow_id"; |
11 changes: 11 additions & 0 deletions
11
persistence/sql/migrations/templates/20200810161022_flow_rename.down.fizz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
rename_table("selfservice_login_flows", "selfservice_login_requests") | ||
rename_table("selfservice_login_flow_methods", "selfservice_login_request_methods") | ||
|
||
rename_table("selfservice_registration_flow_methods", "selfservice_registration_request_methods") | ||
rename_table("selfservice_registration_flows", "selfservice_registration_requests") | ||
|
||
rename_table("selfservice_settings_flow_methods", "selfservice_settings_request_methods") | ||
rename_table("selfservice_settings_flows", "selfservice_settings_requests") | ||
|
||
rename_table("selfservice_recovery_flow_methods", "selfservice_recovery_request_methods") | ||
rename_table("selfservice_recovery_flows", "selfservice_recovery_requests") | ||
|
||
rename_table("selfservice_verification_flows", "selfservice_verification_requests") |
11 changes: 11 additions & 0 deletions
11
persistence/sql/migrations/templates/20200810161022_flow_rename.up.fizz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
rename_table("selfservice_login_request_methods", "selfservice_login_flow_methods") | ||
rename_table("selfservice_login_requests", "selfservice_login_flows") | ||
|
||
rename_table("selfservice_registration_request_methods", "selfservice_registration_flow_methods") | ||
rename_table("selfservice_registration_requests", "selfservice_registration_flows") | ||
|
||
rename_table("selfservice_settings_request_methods", "selfservice_settings_flow_methods") | ||
rename_table("selfservice_settings_requests", "selfservice_settings_flows") | ||
|
||
rename_table("selfservice_recovery_request_methods", "selfservice_recovery_flow_methods") | ||
rename_table("selfservice_recovery_requests", "selfservice_recovery_flows") | ||
|
||
rename_table("selfservice_verification_requests", "selfservice_verification_flows") |
6 changes: 6 additions & 0 deletions
6
persistence/sql/migrations/templates/20200810162450_flow_fields_rename.down.fizz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
rename_column("selfservice_login_flow_methods", "selfservice_login_flow_id", "selfservice_login_request_id") | ||
|
||
rename_column("selfservice_registration_flow_methods", "selfservice_registration_flow_id", "selfservice_registration_request_id") | ||
|
||
rename_column("selfservice_settings_flow_methods", "selfservice_settings_flow_id", "selfservice_settings_request_id") | ||
|
||
rename_column("selfservice_recovery_flow_methods", "selfservice_recovery_flow_id", "selfservice_recovery_request_id") |
6 changes: 6 additions & 0 deletions
6
persistence/sql/migrations/templates/20200810162450_flow_fields_rename.up.fizz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
rename_column("selfservice_login_flow_methods", "selfservice_login_request_id", "selfservice_login_flow_id") | ||
|
||
rename_column("selfservice_registration_flow_methods", "selfservice_registration_request_id", "selfservice_registration_flow_id") | ||
|
||
rename_column("selfservice_recovery_flow_methods", "selfservice_recovery_request_id", "selfservice_recovery_flow_id") | ||
|
||
rename_column("selfservice_settings_flow_methods", "selfservice_settings_request_id", "selfservice_settings_flow_id") |