language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
SQL | hydra/persistence/sql/migrations/20210928155900000000_support_amr_claim.postgres.up.sql | ALTER TABLE hydra_oauth2_consent_request ADD COLUMN amr TEXT NOT NULL DEFAULT '';
ALTER TABLE hydra_oauth2_authentication_request_handled ADD COLUMN amr TEXT NOT NULL DEFAULT ''; |
SQL | hydra/persistence/sql/migrations/20210928155900000000_support_amr_claim.sqlite.down.sql | ALTER TABLE hydra_oauth2_consent_request DROP COLUMN amr;
ALTER TABLE hydra_oauth2_authentication_request_handled DROP COLUMN amr; |
SQL | hydra/persistence/sql/migrations/20210928155900000000_support_amr_claim.sqlite.up.sql | ALTER TABLE hydra_oauth2_consent_request ADD COLUMN amr TEXT NOT NULL DEFAULT '';
ALTER TABLE hydra_oauth2_authentication_request_handled ADD COLUMN amr TEXT NOT NULL DEFAULT ''; |
SQL | hydra/persistence/sql/migrations/20210928175900000000_client_custom_token_ttl.down.sql | ALTER TABLE hydra_client DROP COLUMN authorization_code_grant_access_token_lifespan;
ALTER TABLE hydra_client DROP COLUMN authorization_code_grant_id_token_lifespan;
ALTER TABLE hydra_client DROP COLUMN authorization_code_grant_refresh_token_lifespan;
ALTER TABLE hydra_client DROP COLUMN client_credentials_grant_access... |
SQL | hydra/persistence/sql/migrations/20210928175900000000_client_custom_token_ttl.up.sql | ALTER TABLE hydra_client ADD COLUMN authorization_code_grant_access_token_lifespan BIGINT NULL DEFAULT NULL;
ALTER TABLE hydra_client ADD COLUMN authorization_code_grant_id_token_lifespan BIGINT NULL DEFAULT NULL;
ALTER TABLE hydra_client ADD COLUMN authorization_code_grant_refresh_token_lifespan BIGINT NULL DEFAULT NU... |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.cockroach.down.sql | ALTER TABLE hydra_client DROP CONSTRAINT "hydra_client_pkey", ADD CONSTRAINT "primary" PRIMARY KEY (pk_deprecated); |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.cockroach.up.sql | ALTER TABLE hydra_client RENAME pk TO pk_deprecated;
ALTER TABLE hydra_client ADD pk UUID NOT NULL DEFAULT gen_random_uuid(); |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.mysql.down.sql | ALTER TABLE hydra_client DROP PRIMARY KEY, ADD PRIMARY KEY (pk_deprecated);
ALTER TABLE hydra_client DROP KEY pk_deprecated;
ALTER TABLE hydra_client DROP pk;
ALTER TABLE hydra_client CHANGE COLUMN pk_deprecated pk INT UNSIGNED AUTO_INCREMENT; |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.mysql.up.sql | ALTER TABLE hydra_client CHANGE COLUMN pk pk_deprecated INT UNSIGNED;
ALTER TABLE hydra_client ADD COLUMN pk CHAR(36);
-- UUIDv4 generation based on https://stackoverflow.com/a/66868340/12723442
UPDATE hydra_client SET pk = (SELECT LOWER(CONCAT(
HEX(RANDOM_BYTES(4)),
'-', HEX(RANDOM_BYTES(2)),
'-4', SUBSTR(... |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.postgres.down.sql | ALTER TABLE hydra_client RENAME pk TO pk_tmp;
ALTER TABLE hydra_client RENAME pk_deprecated TO pk;
ALTER TABLE hydra_client DROP CONSTRAINT hydra_client_pkey;
ALTER TABLE hydra_client ADD PRIMARY KEY (pk);
ALTER TABLE hydra_client DROP pk_tmp; |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.postgres.up.sql | ALTER TABLE hydra_client RENAME pk TO pk_deprecated;
-- UUID generation based on https://stackoverflow.com/a/21327318/12723442
ALTER TABLE hydra_client ADD COLUMN pk UUID DEFAULT uuid_in(
overlay(
overlay(
md5(random()::text || ':' || clock_timestamp()::text)
placing '4'
from 13
)
placin... |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.sqlite.down.sql | CREATE TABLE "_hydra_client_tmp"
(
id VARCHAR(255) NOT NULL,
client_name TEXT NOT NULL,
client_secret TEXT NOT NULL,
redirect_uris TEXT NOT NULL,
grant_types ... |
SQL | hydra/persistence/sql/migrations/20211004110001000000_change_client_primary_key.sqlite.up.sql | CREATE TABLE "_hydra_client_tmp"
(
id VARCHAR(255) NOT NULL,
client_name TEXT NOT NULL,
client_secret TEXT NOT NULL,
redirect_uris TEXT NOT NULL,
grant_types ... |
SQL | hydra/persistence/sql/migrations/20211004110003000000_change_client_primary_key.cockroach.up.sql | ALTER TABLE hydra_client DROP CONSTRAINT "primary";
ALTER TABLE hydra_client ADD CONSTRAINT "hydra_client_pkey" PRIMARY KEY (pk); |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.cockroach.down.sql | ALTER TABLE hydra_jwk DROP CONSTRAINT "hydra_jwk", ADD CONSTRAINT "primary" PRIMARY KEY (pk_deprecated); |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.cockroach.up.sql | ALTER TABLE hydra_jwk RENAME pk TO pk_deprecated;
ALTER TABLE hydra_jwk ADD pk UUID NOT NULL DEFAULT gen_random_uuid(); |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.mysql.down.sql | ALTER TABLE hydra_jwk DROP PRIMARY KEY, ADD PRIMARY KEY (pk_deprecated);
ALTER TABLE hydra_jwk DROP pk;
ALTER TABLE hydra_jwk CHANGE COLUMN pk_deprecated pk INT UNSIGNED AUTO_INCREMENT; |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.mysql.up.sql | ALTER TABLE hydra_jwk CHANGE COLUMN pk pk_deprecated INT UNSIGNED;
ALTER TABLE hydra_jwk ADD COLUMN pk CHAR(36);
-- UUIDv4 generation based on https://stackoverflow.com/a/66868340/12723442
UPDATE hydra_jwk SET pk = (SELECT LOWER(CONCAT(
HEX(RANDOM_BYTES(4)),
'-', HEX(RANDOM_BYTES(2)),
'-4', SUBSTR(HEX(RANDO... |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.postgres.down.sql | ALTER TABLE hydra_jwk RENAME pk TO pk_tmp;
ALTER TABLE hydra_jwk RENAME pk_deprecated TO pk;
ALTER TABLE hydra_jwk DROP CONSTRAINT hydra_jwk_pkey;
ALTER TABLE hydra_jwk ADD PRIMARY KEY (pk);
ALTER TABLE hydra_jwk DROP pk_tmp; |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.postgres.up.sql | ALTER TABLE hydra_jwk RENAME pk TO pk_deprecated;
-- UUID generation based on https://stackoverflow.com/a/21327318/12723442
ALTER TABLE hydra_jwk ADD COLUMN pk UUID DEFAULT uuid_in(
overlay(
overlay(
md5(random()::text || ':' || clock_timestamp()::text)
placing '4'
from 13
)
placing to_h... |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.sqlite.down.sql | CREATE TABLE "_hydra_jwk_tmp"
(
sid VARCHAR(255) NOT NULL,
kid VARCHAR(255) NOT NULL,
version INTEGER DEFAULT 0 NOT NULL,
keydata TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
pk INTEGER PRIM... |
SQL | hydra/persistence/sql/migrations/20211011000001000000_change_jwk_primary_key.sqlite.up.sql | CREATE TABLE "_hydra_jwk_tmp"
(
sid VARCHAR(255) NOT NULL,
kid VARCHAR(255) NOT NULL,
version INTEGER DEFAULT 0 NOT NULL,
keydata TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
pk TEXT PRIM... |
SQL | hydra/persistence/sql/migrations/20211011000003000000_change_jwk_primary_key.cockroach.up.sql | ALTER TABLE hydra_jwk DROP CONSTRAINT "primary";
ALTER TABLE hydra_jwk ADD CONSTRAINT "hydra_jwk_pkey" PRIMARY KEY (pk); |
SQL | hydra/persistence/sql/migrations/20211019000001000000_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE TABLE hydra_oauth2_flow
(
login_challenge character varying(40) NOT NULL,
requested_scope text NOT NULL DEFAULT '[]',
login_verifier character varying(40) NOT NULL,
login_c... |
SQL | hydra/persistence/sql/migrations/20211019000001000000_merge_authentication_request_tables.down.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- Down migrations from Hydra 2.x to 1.x are not available. |
SQL | hydra/persistence/sql/migrations/20211019000001000000_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE TABLE hydra_oauth2_flow
(
`login_challenge` varchar(40) NOT NULL,
`requested_scope` text NOT NULL DEFAULT ('[]'),
`login_verifier` varchar(40) NOT NULL,
`login_csrf` varchar(40) NOT NULL,
`subject` v... |
SQL | hydra/persistence/sql/migrations/20211019000001000000_merge_authentication_request_tables.postgres.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE TABLE hydra_oauth2_flow
(
login_challenge character varying(40) NOT NULL,
requested_scope text NOT NULL DEFAULT '[]',
login_verifier character varying(40) NOT NULL,
login_c... |
SQL | hydra/persistence/sql/migrations/20211019000001000000_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE TABLE hydra_oauth2_flow
(
login_challenge VARCHAR(40) NOT NULL PRIMARY KEY,
requested_scope TEXT NOT NULL DEFAULT '[]',
login_verifier VARCHAR(40) NOT NULL,
login... |
SQL | hydra/persistence/sql/migrations/20211019000001000001_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
INSERT INTO hydra_oauth2_flow (
state,
login_challenge,
requested_scope,
login_verifier,
login_csrf,
subject,
request_url,
login_skip,
client_id,
requested_at,
login_initialized_at,... |
SQL | hydra/persistence/sql/migrations/20211019000001000001_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000001_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
INSERT INTO hydra_oauth2_flow (
state,
login_challenge,
requested_scope,
login_verifier,
login_csrf,
subject,
request_url,
login_skip,
client_id,
requested_at,
login_initialized_at,... |
SQL | hydra/persistence/sql/migrations/20211019000001000001_merge_authentication_request_tables.postgres.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
INSERT INTO hydra_oauth2_flow (
state,
login_challenge,
requested_scope,
login_verifier,
login_csrf,
subject,
request_url,
login_skip,
client_id,
requested_at,
login_initialized_at,... |
SQL | hydra/persistence/sql/migrations/20211019000001000001_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
INSERT INTO hydra_oauth2_flow (
state,
login_challenge,
requested_scope,
login_verifier,
login_csrf,
subject,
request_url,
login_skip,
client_id,
requested_at,
login_initialized_at,... |
SQL | hydra/persistence/sql/migrations/20211019000001000002_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_flow_client_id_subject_idx ON hydra_oauth2_flow USING btree (client_id, subject);
CREATE INDEX hydra_oauth2_flow_cid_idx ON hydra_oauth2_flow USING btree (client_id);
CREATE INDEX hydra_oauth2_flow_l... |
SQL | hydra/persistence/sql/migrations/20211019000001000002_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000002_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_access DROP FOREIGN KEY hydra_oauth2_access_challenge_id_fk; |
SQL | hydra/persistence/sql/migrations/20211019000001000002_merge_authentication_request_tables.postgres.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_flow_client_id_subject_idx ON hydra_oauth2_flow USING btree (client_id, subject);
CREATE INDEX hydra_oauth2_flow_cid_idx ON hydra_oauth2_flow USING btree (client_id);
CREATE INDEX hydra_oauth2_flow_l... |
SQL | hydra/persistence/sql/migrations/20211019000001000002_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_flow_client_id_idx ON hydra_oauth2_flow (client_id); |
SQL | hydra/persistence/sql/migrations/20211019000001000003_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE ONLY hydra_oauth2_flow ADD CONSTRAINT hydra_oauth2_flow_pkey PRIMARY KEY (login_challenge); |
SQL | hydra/persistence/sql/migrations/20211019000001000003_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000003_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_access ADD CONSTRAINT hydra_oauth2_access_challenge_id_fk FOREIGN KEY (challenge_id) REFERENCES hydra_oauth2_flow(consent_challenge_id) ON DELETE CASCADE; |
SQL | hydra/persistence/sql/migrations/20211019000001000003_merge_authentication_request_tables.postgres.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000003_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_flow_login_session_id_idx ON hydra_oauth2_flow (login_session_id); |
SQL | hydra/persistence/sql/migrations/20211019000001000004_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE ONLY hydra_oauth2_flow ADD CONSTRAINT hydra_oauth2_flow_client_id_fk FOREIGN KEY (client_id) REFERENCES hydra_client(id) ON DELETE CASCADE;
ALTER TABLE ONLY hydra_oauth2_flow ADD CONSTRAINT hydra_oauth2_flow_login... |
SQL | hydra/persistence/sql/migrations/20211019000001000004_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000004_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_code DROP FOREIGN KEY hydra_oauth2_code_challenge_id_fk; |
SQL | hydra/persistence/sql/migrations/20211019000001000004_merge_authentication_request_tables.postgres.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request; |
SQL | hydra/persistence/sql/migrations/20211019000001000004_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_flow_subject_idx ON hydra_oauth2_flow (subject); |
SQL | hydra/persistence/sql/migrations/20211019000001000005_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000005_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000005_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_code ADD CONSTRAINT hydra_oauth2_code_challenge_id_fk FOREIGN KEY (challenge_id) REFERENCES hydra_oauth2_flow(consent_challenge_id) ON DELETE CASCADE; |
SQL | hydra/persistence/sql/migrations/20211019000001000005_merge_authentication_request_tables.postgres.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_authentication_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000005_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE UNIQUE INDEX hydra_oauth2_flow_consent_challenge_id_idx ON hydra_oauth2_flow (consent_challenge_id); |
SQL | hydra/persistence/sql/migrations/20211019000001000006_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request; |
SQL | hydra/persistence/sql/migrations/20211019000001000006_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000006_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_oidc DROP FOREIGN KEY hydra_oauth2_oidc_challenge_id_fk; |
SQL | hydra/persistence/sql/migrations/20211019000001000006_merge_authentication_request_tables.postgres.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_authentication_request; |
SQL | hydra/persistence/sql/migrations/20211019000001000006_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE UNIQUE INDEX hydra_oauth2_flow_login_verifier_idx ON hydra_oauth2_flow (login_verifier); |
SQL | hydra/persistence/sql/migrations/20211019000001000007_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_authentication_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000007_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000007_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_oidc ADD CONSTRAINT hydra_oauth2_oidc_challenge_id_fk FOREIGN KEY (challenge_id) REFERENCES hydra_oauth2_flow(consent_challenge_id) ON DELETE CASCADE; |
SQL | hydra/persistence/sql/migrations/20211019000001000007_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000007_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_flow_consent_verifier_idx ON hydra_oauth2_flow (consent_verifier); |
SQL | hydra/persistence/sql/migrations/20211019000001000008_merge_authentication_request_tables.cockroach.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_authentication_request; |
SQL | hydra/persistence/sql/migrations/20211019000001000008_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000008_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_pkce DROP FOREIGN KEY hydra_oauth2_pkce_challenge_id_fk; |
SQL | hydra/persistence/sql/migrations/20211019000001000008_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000008_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_authentication_request; |
SQL | hydra/persistence/sql/migrations/20211019000001000009_merge_authentication_request_tables.cockroach.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000009_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000009_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_pkce ADD CONSTRAINT hydra_oauth2_pkce_challenge_id_fk FOREIGN KEY (challenge_id) REFERENCES hydra_oauth2_flow(consent_challenge_id) ON DELETE CASCADE; |
SQL | hydra/persistence/sql/migrations/20211019000001000009_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000009_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_authentication_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000010_merge_authentication_request_tables.cockroach.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000010_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000010_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_refresh DROP FOREIGN KEY hydra_oauth2_refresh_challenge_id_fk; |
SQL | hydra/persistence/sql/migrations/20211019000001000010_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000010_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request; |
SQL | hydra/persistence/sql/migrations/20211019000001000011_merge_authentication_request_tables.cockroach.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000011_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000011_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_refresh ADD CONSTRAINT hydra_oauth2_refresh_challenge_id_fk FOREIGN KEY (challenge_id) REFERENCES hydra_oauth2_flow(consent_challenge_id) ON DELETE CASCADE; |
SQL | hydra/persistence/sql/migrations/20211019000001000011_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000011_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000012_merge_authentication_request_tables.cockroach.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000012_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000012_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000012_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000012_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_code; |
SQL | hydra/persistence/sql/migrations/20211019000001000013_merge_authentication_request_tables.cockroach.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000013_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000013_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_consent_request; |
SQL | hydra/persistence/sql/migrations/20211019000001000013_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000013_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE TABLE hydra_oauth2_code
(
signature VARCHAR(255) NOT NULL,
request_id VARCHAR(40) NOT NULL,
requested_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
client_id VARCH... |
SQL | hydra/persistence/sql/migrations/20211019000001000014_merge_authentication_request_tables.cockroach.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000014_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000014_merge_authentication_request_tables.mysql.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP TABLE hydra_oauth2_authentication_request_handled; |
SQL | hydra/persistence/sql/migrations/20211019000001000014_merge_authentication_request_tables.postgres.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000014_merge_authentication_request_tables.sqlite.up.sql | -- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_code_client_id_idx ON hydra_oauth2_code (client_id); |
SQL | hydra/persistence/sql/migrations/20211019000001000015_merge_authentication_request_tables.cockroach.up.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
SQL | hydra/persistence/sql/migrations/20211019000001000015_merge_authentication_request_tables.down.sql | -- This blank migration was generated to meet ory/x/popx validation criteria, see https://github.com/ory/x/pull/509; DO NOT EDIT.
-- hydra:generate hydra migrate gen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.