...

Text file src/github.com/ory/x/popx/stub/migrations/legacy/20200607165100_settings.sqlite3.up.sql

Documentation: github.com/ory/x/popx/stub/migrations/legacy

     1ALTER TABLE "selfservice_settings_requests" ADD COLUMN "state" TEXT NOT NULL DEFAULT 'show_form';
     2CREATE TABLE "_selfservice_settings_requests_tmp" (
     3"id" TEXT PRIMARY KEY,
     4"request_url" TEXT NOT NULL,
     5"issued_at" DATETIME NOT NULL DEFAULT 'CURRENT_TIMESTAMP',
     6"expires_at" DATETIME NOT NULL,
     7"identity_id" char(36) NOT NULL,
     8"created_at" DATETIME NOT NULL,
     9"updated_at" DATETIME NOT NULL,
    10"active_method" TEXT,
    11"messages" TEXT,
    12"state" TEXT NOT NULL DEFAULT 'show_form',
    13FOREIGN KEY (identity_id) REFERENCES identities (id) ON UPDATE NO ACTION ON DELETE CASCADE
    14);
    15INSERT INTO "_selfservice_settings_requests_tmp" (id, request_url, issued_at, expires_at, identity_id, created_at, updated_at, active_method, messages, state) SELECT id, request_url, issued_at, expires_at, identity_id, created_at, updated_at, active_method, messages, state FROM "selfservice_settings_requests";
    16
    17DROP TABLE "selfservice_settings_requests";
    18ALTER TABLE "_selfservice_settings_requests_tmp" RENAME TO "selfservice_settings_requests";

View as plain text