Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
175 additions
and
164 deletions.
There are no files selected for viewing
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
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
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
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
6 changes: 6 additions & 0 deletions
6
persistence/sql/migratest/fixtures/recovery_token/1b667e6d-8fda-4194-a765-08185185d7e4.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"id": "1b667e6d-8fda-4194-a765-08185185d7e4", | ||
"recovery_address": null, | ||
"expires_at": "2013-10-07T08:23:19Z", | ||
"issued_at": "2013-10-07T08:23:19Z" | ||
} |
6 changes: 6 additions & 0 deletions
6
persistence/sql/migratest/fixtures/recovery_token/5529d454-2946-404e-b681-d950f8657fd0.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"id": "5529d454-2946-404e-b681-d950f8657fd0", | ||
"recovery_address": null, | ||
"expires_at": "2000-01-01T00:00:00Z", | ||
"issued_at": "2000-01-01T00:00:00Z" | ||
} |
6 changes: 6 additions & 0 deletions
6
persistence/sql/migratest/fixtures/recovery_token/77ca3f5c-cd39-488b-9f1d-cc7166d14bdc.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"id": "77ca3f5c-cd39-488b-9f1d-cc7166d14bdc", | ||
"recovery_address": null, | ||
"expires_at": "2000-01-01T00:00:00Z", | ||
"issued_at": "2000-01-01T00:00:00Z" | ||
} |
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
7 changes: 1 addition & 6 deletions
7
persistence/sql/migratest/testdata/20200830130642_testdata.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,6 +1 @@ | ||
|
||
INSERT INTO selfservice_verification_flows (id, request_url, issued_at, expires_at, messages, active_method, csrf_token, state, created_at, updated_at) | ||
VALUES ('5385c962-0295-4575-9b1b-d7eef13c0eda', 'http://kratos:4433/self-service/browser/flows/registration', '2013-10-07 08:23:19', '2013-10-07 08:23:19', '[]', 'link', 'vYYuhWXBfXKzBC+BlnbDmXfBKsUWY6SU/v04gHF9GYzPjFP51RXDPOc57R7Dpbf+XLkbPNAkmem33Crz/avdrw==', 'choose_method', '2013-10-07 08:23:19', '2013-10-07 08:23:19'); | ||
|
||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) | ||
VALUES ('42021826-ad73-44f1-9365-6e2ba455c883', 'link', '5385c962-0295-4575-9b1b-d7eef13c0eda', '{"action":"http://127.0.0.1:4455/.ory/kratos/public/self-service/browser/flows/settings/strategies/profile?flow=21c5f714-3089-49d2-b387-f244d4dd9e00","method":"POST","fields":[{"name":"csrf_token","type":"hidden","required":true,"value":"yDwSg0quCmc4kBl7lBqYwGh4W8awrc+TpeWiigZs3iemRCwqeDhGdrW3sIv8T7u742pN+Kryx/NrdRpEXcT9qA=="},{"name":"traits.email","type":"text","value":"foo","errors":[{"message":"validation failed"},{"message":"foo is not valid email"},{"message":"foo is not valid email"}]}]}', '2013-10-07 08:23:19', '2013-10-07 08:23:19'); | ||
-- nothing do to |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
-- nothing do to |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
-- nothing do to |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
-- nothing do to |
5 changes: 5 additions & 0 deletions
5
persistence/sql/migratest/testdata/20200830130646_testdata.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
INSERT INTO selfservice_verification_flows (id, request_url, issued_at, expires_at, messages, active_method, csrf_token, state, created_at, updated_at) | ||
VALUES ('5385c962-0295-4575-9b1b-d7eef13c0eda', 'http://kratos:4433/self-service/browser/flows/registration', '2013-10-07 08:23:19', '2013-10-07 08:23:19', '[]', 'link', 'vYYuhWXBfXKzBC+BlnbDmXfBKsUWY6SU/v04gHF9GYzPjFP51RXDPOc57R7Dpbf+XLkbPNAkmem33Crz/avdrw==', 'choose_method', '2013-10-07 08:23:19', '2013-10-07 08:23:19'); | ||
|
||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) | ||
VALUES ('42021826-ad73-44f1-9365-6e2ba455c883', 'link', '5385c962-0295-4575-9b1b-d7eef13c0eda', '{"action":"http://127.0.0.1:4455/.ory/kratos/public/self-service/browser/flows/settings/strategies/profile?flow=21c5f714-3089-49d2-b387-f244d4dd9e00","method":"POST","fields":[{"name":"csrf_token","type":"hidden","required":true,"value":"yDwSg0quCmc4kBl7lBqYwGh4W8awrc+TpeWiigZs3iemRCwqeDhGdrW3sIv8T7u742pN+Kryx/NrdRpEXcT9qA=="},{"name":"traits.email","type":"text","value":"foo","errors":[{"message":"validation failed"},{"message":"foo is not valid email"},{"message":"foo is not valid email"}]}]}', '2013-10-07 08:23:19', '2013-10-07 08:23:19'); |
17 changes: 1 addition & 16 deletions
17
persistence/sql/migrations/sql/20200830130642_add_verification_methods.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,16 +1 @@ | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "state" VARCHAR (255) NOT NULL DEFAULT 'show_form';COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; | ||
CREATE TABLE "selfservice_verification_flow_methods" ( | ||
"id" UUID NOT NULL, | ||
PRIMARY KEY("id"), | ||
"method" VARCHAR (32) NOT NULL, | ||
"selfservice_verification_flow_id" UUID NOT NULL, | ||
"config" json NOT NULL, | ||
"created_at" timestamp NOT NULL, | ||
"updated_at" timestamp NOT NULL | ||
);COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "active_method" VARCHAR (32);COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) SELECT id, 'link', id, form, created_at, updated_at FROM selfservice_verification_flows; | ||
ALTER TABLE "selfservice_verification_flows" DROP COLUMN "form";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_verification_flows" DROP COLUMN "via";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_verification_flows" DROP COLUMN "success";COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "state" VARCHAR (255) NOT NULL DEFAULT 'show_form';COMMIT TRANSACTION;BEGIN TRANSACTION; |
17 changes: 1 addition & 16 deletions
17
persistence/sql/migrations/sql/20200830130642_add_verification_methods.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,16 +1 @@ | ||
ALTER TABLE `selfservice_verification_flows` ADD COLUMN `state` VARCHAR (255) NOT NULL DEFAULT 'show_form'; | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; | ||
CREATE TABLE `selfservice_verification_flow_methods` ( | ||
`id` char(36) NOT NULL, | ||
PRIMARY KEY(`id`), | ||
`method` VARCHAR (32) NOT NULL, | ||
`selfservice_verification_flow_id` char(36) NOT NULL, | ||
`config` JSON NOT NULL, | ||
`created_at` DATETIME NOT NULL, | ||
`updated_at` DATETIME NOT NULL | ||
) ENGINE=InnoDB; | ||
ALTER TABLE `selfservice_verification_flows` ADD COLUMN `active_method` VARCHAR (32); | ||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) SELECT id, 'link', id, form, created_at, updated_at FROM selfservice_verification_flows; | ||
ALTER TABLE `selfservice_verification_flows` DROP COLUMN `form`; | ||
ALTER TABLE `selfservice_verification_flows` DROP COLUMN `via`; | ||
ALTER TABLE `selfservice_verification_flows` DROP COLUMN `success`; | ||
ALTER TABLE `selfservice_verification_flows` ADD COLUMN `state` VARCHAR (255) NOT NULL DEFAULT 'show_form'; |
17 changes: 1 addition & 16 deletions
17
persistence/sql/migrations/sql/20200830130642_add_verification_methods.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,16 +1 @@ | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "state" VARCHAR (255) NOT NULL DEFAULT 'show_form'; | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; | ||
CREATE TABLE "selfservice_verification_flow_methods" ( | ||
"id" UUID NOT NULL, | ||
PRIMARY KEY("id"), | ||
"method" VARCHAR (32) NOT NULL, | ||
"selfservice_verification_flow_id" UUID NOT NULL, | ||
"config" jsonb NOT NULL, | ||
"created_at" timestamp NOT NULL, | ||
"updated_at" timestamp NOT NULL | ||
); | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "active_method" VARCHAR (32); | ||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) SELECT id, 'link', id, form, created_at, updated_at FROM selfservice_verification_flows; | ||
ALTER TABLE "selfservice_verification_flows" DROP COLUMN "form"; | ||
ALTER TABLE "selfservice_verification_flows" DROP COLUMN "via"; | ||
ALTER TABLE "selfservice_verification_flows" DROP COLUMN "success"; | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "state" VARCHAR (255) NOT NULL DEFAULT 'show_form'; |
67 changes: 1 addition & 66 deletions
67
persistence/sql/migrations/sql/20200830130642_add_verification_methods.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,66 +1 @@ | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "state" TEXT NOT NULL DEFAULT 'show_form'; | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; | ||
CREATE TABLE "selfservice_verification_flow_methods" ( | ||
"id" TEXT PRIMARY KEY, | ||
"method" TEXT NOT NULL, | ||
"selfservice_verification_flow_id" char(36) NOT NULL, | ||
"config" TEXT NOT NULL, | ||
"created_at" DATETIME NOT NULL, | ||
"updated_at" DATETIME NOT NULL | ||
); | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "active_method" TEXT; | ||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) SELECT id, 'link', id, form, created_at, updated_at FROM selfservice_verification_flows; | ||
CREATE TABLE "_selfservice_verification_flows_tmp" ( | ||
"id" TEXT PRIMARY KEY, | ||
"request_url" TEXT NOT NULL, | ||
"issued_at" DATETIME NOT NULL DEFAULT 'CURRENT_TIMESTAMP', | ||
"expires_at" DATETIME NOT NULL, | ||
"via" TEXT NOT NULL, | ||
"csrf_token" TEXT NOT NULL, | ||
"success" bool NOT NULL, | ||
"created_at" DATETIME NOT NULL, | ||
"updated_at" DATETIME NOT NULL, | ||
"messages" TEXT, | ||
"type" TEXT NOT NULL DEFAULT 'browser', | ||
"state" TEXT NOT NULL DEFAULT 'show_form', | ||
"active_method" TEXT | ||
); | ||
INSERT INTO "_selfservice_verification_flows_tmp" (id, request_url, issued_at, expires_at, via, csrf_token, success, created_at, updated_at, messages, type, state, active_method) SELECT id, request_url, issued_at, expires_at, via, csrf_token, success, created_at, updated_at, messages, type, state, active_method FROM "selfservice_verification_flows"; | ||
|
||
DROP TABLE "selfservice_verification_flows"; | ||
ALTER TABLE "_selfservice_verification_flows_tmp" RENAME TO "selfservice_verification_flows"; | ||
CREATE TABLE "_selfservice_verification_flows_tmp" ( | ||
"id" TEXT PRIMARY KEY, | ||
"request_url" TEXT NOT NULL, | ||
"issued_at" DATETIME NOT NULL DEFAULT 'CURRENT_TIMESTAMP', | ||
"expires_at" DATETIME NOT NULL, | ||
"csrf_token" TEXT NOT NULL, | ||
"success" bool NOT NULL, | ||
"created_at" DATETIME NOT NULL, | ||
"updated_at" DATETIME NOT NULL, | ||
"messages" TEXT, | ||
"type" TEXT NOT NULL DEFAULT 'browser', | ||
"state" TEXT NOT NULL DEFAULT 'show_form', | ||
"active_method" TEXT | ||
); | ||
INSERT INTO "_selfservice_verification_flows_tmp" (id, request_url, issued_at, expires_at, csrf_token, success, created_at, updated_at, messages, type, state, active_method) SELECT id, request_url, issued_at, expires_at, csrf_token, success, created_at, updated_at, messages, type, state, active_method FROM "selfservice_verification_flows"; | ||
|
||
DROP TABLE "selfservice_verification_flows"; | ||
ALTER TABLE "_selfservice_verification_flows_tmp" RENAME TO "selfservice_verification_flows"; | ||
CREATE TABLE "_selfservice_verification_flows_tmp" ( | ||
"id" TEXT PRIMARY KEY, | ||
"request_url" TEXT NOT NULL, | ||
"issued_at" DATETIME NOT NULL DEFAULT 'CURRENT_TIMESTAMP', | ||
"expires_at" DATETIME NOT NULL, | ||
"csrf_token" TEXT NOT NULL, | ||
"created_at" DATETIME NOT NULL, | ||
"updated_at" DATETIME NOT NULL, | ||
"messages" TEXT, | ||
"type" TEXT NOT NULL DEFAULT 'browser', | ||
"state" TEXT NOT NULL DEFAULT 'show_form', | ||
"active_method" TEXT | ||
); | ||
INSERT INTO "_selfservice_verification_flows_tmp" (id, request_url, issued_at, expires_at, csrf_token, created_at, updated_at, messages, type, state, active_method) SELECT id, request_url, issued_at, expires_at, csrf_token, created_at, updated_at, messages, type, state, active_method FROM "selfservice_verification_flows"; | ||
|
||
DROP TABLE "selfservice_verification_flows"; | ||
ALTER TABLE "_selfservice_verification_flows_tmp" RENAME TO "selfservice_verification_flows"; | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "state" TEXT NOT NULL DEFAULT 'show_form'; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20200830130643_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20200830130643_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20200830130643_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20200830130643_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
UPDATE selfservice_verification_flows SET state='passed_challenge' WHERE success IS TRUE; |
10 changes: 10 additions & 0 deletions
10
persistence/sql/migrations/sql/20200830130644_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE "selfservice_verification_flow_methods" ( | ||
"id" UUID NOT NULL, | ||
PRIMARY KEY("id"), | ||
"method" VARCHAR (32) NOT NULL, | ||
"selfservice_verification_flow_id" UUID NOT NULL, | ||
"config" json NOT NULL, | ||
"created_at" timestamp NOT NULL, | ||
"updated_at" timestamp NOT NULL | ||
);COMMIT TRANSACTION;BEGIN TRANSACTION; | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "active_method" VARCHAR (32);COMMIT TRANSACTION;BEGIN TRANSACTION; |
10 changes: 10 additions & 0 deletions
10
persistence/sql/migrations/sql/20200830130644_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE `selfservice_verification_flow_methods` ( | ||
`id` char(36) NOT NULL, | ||
PRIMARY KEY(`id`), | ||
`method` VARCHAR (32) NOT NULL, | ||
`selfservice_verification_flow_id` char(36) NOT NULL, | ||
`config` JSON NOT NULL, | ||
`created_at` DATETIME NOT NULL, | ||
`updated_at` DATETIME NOT NULL | ||
) ENGINE=InnoDB; | ||
ALTER TABLE `selfservice_verification_flows` ADD COLUMN `active_method` VARCHAR (32); |
10 changes: 10 additions & 0 deletions
10
persistence/sql/migrations/sql/20200830130644_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE "selfservice_verification_flow_methods" ( | ||
"id" UUID NOT NULL, | ||
PRIMARY KEY("id"), | ||
"method" VARCHAR (32) NOT NULL, | ||
"selfservice_verification_flow_id" UUID NOT NULL, | ||
"config" jsonb NOT NULL, | ||
"created_at" timestamp NOT NULL, | ||
"updated_at" timestamp NOT NULL | ||
); | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "active_method" VARCHAR (32); |
9 changes: 9 additions & 0 deletions
9
persistence/sql/migrations/sql/20200830130644_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE "selfservice_verification_flow_methods" ( | ||
"id" TEXT PRIMARY KEY, | ||
"method" TEXT NOT NULL, | ||
"selfservice_verification_flow_id" char(36) NOT NULL, | ||
"config" TEXT NOT NULL, | ||
"created_at" DATETIME NOT NULL, | ||
"updated_at" DATETIME NOT NULL | ||
); | ||
ALTER TABLE "selfservice_verification_flows" ADD COLUMN "active_method" TEXT; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20200830130645_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) SELECT id, 'link', id, form, created_at, updated_at FROM selfservice_verification_flows; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20200830130645_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) SELECT id, 'link', id, form, created_at, updated_at FROM selfservice_verification_flows; |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/sql/20200830130645_add_verification_methods.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO selfservice_verification_flow_methods (id, method, selfservice_verification_flow_id, config, created_at, updated_at) SELECT id, 'link', id, form, created_at, updated_at FROM selfservice_verification_flows; |
Oops, something went wrong.