language
stringlengths 0
24
| filename
stringlengths 9
214
| code
stringlengths 99
9.93M
|
---|---|---|
SQL
|
hydra/persistence/sql/migrations/20220210000001000013_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_authentication_session ALTER nid SET NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000013_nid.sqlite.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/20220210000001000014_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_authentication_session_subject_idx;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000014_nid.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/20220210000001000014_nid.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_client_id_fk`;
ALTER TABLE hydra_oauth2_code ADD CONSTRAINT `hydra_oauth2_code_client_id_fk` FOREIGN KEY (`client_id`, `nid`) REFERENCES `hydra_client` (`id`, `nid`) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000014_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_authentication_session_sub_idx;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000014_nid.sqlite.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/20220210000001000015_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_authentication_session_subject_idx ON hydra_oauth2_authentication_session (subject ASC, nid ASC);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000015_nid.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/20220210000001000015_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_code_request_id_idx ON hydra_oauth2_code;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000015_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_authentication_session_sub_idx ON hydra_oauth2_authentication_session (subject ASC, nid ASC);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000015_nid.sqlite.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/20220210000001000016_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_code
ALTER TABLE hydra_oauth2_code ADD COLUMN "nid" UUID;
ALTER TABLE hydra_oauth2_code ADD CONSTRAINT "hydra_oauth2_code_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000016_nid.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/20220210000001000016_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_code_request_id_idx ON hydra_oauth2_code (request_id, nid);
-- hydra_oauth2_flow
ALTER TABLE `hydra_oauth2_flow` ADD COLUMN `nid` char(36);
ALTER TABLE `hydra_oauth2_flow` ADD CONSTRAINT `hydra_oauth2_flow_nid_fk_idx` FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000016_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_code
ALTER TABLE "hydra_oauth2_code" ADD COLUMN "nid" UUID;
ALTER TABLE "hydra_oauth2_code" ADD CONSTRAINT "hydra_oauth2_code_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000016_nid.sqlite.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/20220210000001000017_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_code SET nid = (SELECT id FROM networks LIMIT 1);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000017_nid.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/20220210000001000017_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_flow DROP FOREIGN KEY `hydra_oauth2_flow_client_id_fk`;
ALTER TABLE hydra_oauth2_flow ADD CONSTRAINT `hydra_oauth2_flow_client_id_fk` FOREIGN KEY (`client_id`, `nid`) REFERENCES `hydra_client` (`id`, `nid`) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000017_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_code SET nid = (SELECT id FROM networks LIMIT 1);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000017_nid.sqlite.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/20220210000001000018_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_code ALTER nid SET NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000018_nid.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/20220210000001000018_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_flow SET nid = (SELECT id FROM networks LIMIT 1);
ALTER TABLE hydra_oauth2_flow MODIFY `nid` char(36) NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000018_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_code ALTER nid SET NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000018_nid.sqlite.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/20220210000001000019_nid.cockroach.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_client_id_fk FOREIGN KEY (client_id, nid) REFERENCES hydra_client(id, nid) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000019_nid.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/20220210000001000019_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_flow_client_id_subject_idx ON hydra_oauth2_flow;
-- DROP INDEX hydra_oauth2_flow_login_session_id_idx ON hydra_oauth2_flow;
DROP INDEX hydra_oauth2_flow_sub_idx ON hydra_oauth2_flow;
DROP INDEX hydra_oauth2_flow_login_verifier_idx ON hydra_oauth2_flow;
DROP INDEX hydra_oauth2_flow_consent_verifier_idx ON hydra_oauth2_flow;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000019_nid.postgres.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_client_id_fk FOREIGN KEY (client_id, nid) REFERENCES hydra_client(id, nid) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000019_nid.sqlite.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/20220210000001000020_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_code_client_id_idx;
DROP INDEX hydra_oauth2_code_challenge_id_idx;
DROP INDEX hydra_oauth2_code_request_id_idx;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000020_nid.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/20220210000001000020_nid.mysql.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 (client_id ASC, nid ASC, subject ASC);
-- CREATE INDEX hydra_oauth2_flow_login_session_id_idx ON hydra_oauth2_flow (login_session_id ASC, nid ASC);
CREATE INDEX hydra_oauth2_flow_sub_idx ON hydra_oauth2_flow (subject ASC, nid ASC);
CREATE UNIQUE INDEX hydra_oauth2_flow_login_verifier_idx ON hydra_oauth2_flow (login_verifier ASC);
CREATE UNIQUE INDEX hydra_oauth2_flow_consent_verifier_idx ON hydra_oauth2_flow (consent_verifier ASC);
-- hydra_oauth2_jti_blacklist
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000020_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_code_client_id_idx;
DROP INDEX hydra_oauth2_code_challenge_id_idx;
DROP INDEX hydra_oauth2_code_request_id_idx;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000020_nid.sqlite.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/20220210000001000021_nid.cockroach.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, nid);
CREATE INDEX hydra_oauth2_code_challenge_id_idx ON hydra_oauth2_code (challenge_id, nid);
CREATE INDEX hydra_oauth2_code_request_id_idx ON hydra_oauth2_code (request_id, nid);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000021_nid.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/20220210000001000021_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE `hydra_oauth2_jti_blacklist` ADD COLUMN `nid` char(36);
ALTER TABLE `hydra_oauth2_jti_blacklist` ADD CONSTRAINT `hydra_oauth2_jti_blacklist_nid_fk_idx` FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000021_nid.postgres.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, nid);
CREATE INDEX hydra_oauth2_code_challenge_id_idx ON hydra_oauth2_code (challenge_id, nid);
CREATE INDEX hydra_oauth2_code_request_id_idx ON hydra_oauth2_code (request_id, nid);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000021_nid.sqlite.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/20220210000001000022_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_flow
ALTER TABLE hydra_oauth2_flow ADD COLUMN "nid" UUID;
ALTER TABLE hydra_oauth2_flow ADD CONSTRAINT "hydra_oauth2_flow_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000022_nid.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/20220210000001000022_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_jti_blacklist SET nid = (SELECT id FROM networks LIMIT 1);
ALTER TABLE hydra_oauth2_jti_blacklist MODIFY `nid` char(36) NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000022_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_flow
ALTER TABLE "hydra_oauth2_flow" ADD COLUMN "nid" UUID;
ALTER TABLE "hydra_oauth2_flow" ADD CONSTRAINT "hydra_oauth2_flow_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000022_nid.sqlite.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/20220210000001000023_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_flow SET nid = (SELECT id FROM networks LIMIT 1);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000023_nid.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/20220210000001000023_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_jti_blacklist_expiry ON hydra_oauth2_jti_blacklist;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000023_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_flow SET nid = (SELECT id FROM networks LIMIT 1);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000023_nid.sqlite.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/20220210000001000024_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_flow ALTER nid SET NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000024_nid.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/20220210000001000024_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_jti_blacklist_expiry ON hydra_oauth2_jti_blacklist (expires_at ASC, nid ASC);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000024_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_flow ALTER nid SET NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000024_nid.sqlite.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/20220210000001000025_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_flow ADD CONSTRAINT hydra_oauth2_flow_client_id_fk FOREIGN KEY (client_id, nid) REFERENCES hydra_client(id, nid) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000025_nid.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/20220210000001000025_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_jti_blacklist DROP PRIMARY KEY, ADD PRIMARY KEY (signature, nid);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000025_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_flow ADD CONSTRAINT hydra_oauth2_flow_client_id_fk FOREIGN KEY (client_id, nid) REFERENCES hydra_client(id, nid) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000025_nid.sqlite.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/20220210000001000026_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_flow_client_id_subject_idx;
DROP INDEX hydra_oauth2_flow_cid_idx;
DROP INDEX hydra_oauth2_flow_login_session_id_idx;
DROP INDEX hydra_oauth2_flow_sub_idx;
DROP INDEX hydra_oauth2_flow_login_verifier_idx;
DROP INDEX hydra_oauth2_flow_consent_verifier_idx;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000026_nid.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/20220210000001000026_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_logout_request
ALTER TABLE hydra_oauth2_logout_request ADD COLUMN `nid` char(36);
ALTER TABLE hydra_oauth2_logout_request ADD CONSTRAINT hydra_oauth2_logout_request_nid_fk_idx FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000026_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_flow_client_id_subject_idx;
DROP INDEX hydra_oauth2_flow_cid_idx;
DROP INDEX hydra_oauth2_flow_login_session_id_idx;
DROP INDEX hydra_oauth2_flow_sub_idx;
DROP INDEX hydra_oauth2_flow_login_verifier_idx;
DROP INDEX hydra_oauth2_flow_consent_verifier_idx;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000026_nid.sqlite.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/20220210000001000027_nid.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 (client_id ASC, nid ASC, subject ASC);
CREATE INDEX hydra_oauth2_flow_cid_idx ON hydra_oauth2_flow (client_id ASC, nid ASC);
CREATE INDEX hydra_oauth2_flow_login_session_id_idx ON hydra_oauth2_flow (login_session_id ASC, nid ASC);
CREATE INDEX hydra_oauth2_flow_sub_idx ON hydra_oauth2_flow (subject ASC, nid ASC);
CREATE UNIQUE INDEX hydra_oauth2_flow_login_verifier_idx ON hydra_oauth2_flow (login_verifier ASC);
CREATE UNIQUE INDEX hydra_oauth2_flow_consent_verifier_idx ON hydra_oauth2_flow (consent_verifier ASC);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000027_nid.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/20220210000001000027_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_logout_request DROP FOREIGN KEY `hydra_oauth2_logout_request_client_id_fk`;
ALTER TABLE hydra_oauth2_logout_request ADD CONSTRAINT `hydra_oauth2_logout_request_client_id_fk` FOREIGN KEY (`client_id`, `nid`) REFERENCES `hydra_client` (`id`, `nid`) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000027_nid.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 (client_id ASC, nid ASC, subject ASC);
CREATE INDEX hydra_oauth2_flow_cid_idx ON hydra_oauth2_flow (client_id ASC, nid ASC);
CREATE INDEX hydra_oauth2_flow_login_session_id_idx ON hydra_oauth2_flow (login_session_id ASC, nid ASC);
CREATE INDEX hydra_oauth2_flow_sub_idx ON hydra_oauth2_flow (subject ASC, nid ASC);
CREATE UNIQUE INDEX hydra_oauth2_flow_login_verifier_idx ON hydra_oauth2_flow (login_verifier ASC);
CREATE UNIQUE INDEX hydra_oauth2_flow_consent_verifier_idx ON hydra_oauth2_flow (consent_verifier ASC);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000027_nid.sqlite.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/20220210000001000028_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_jti_blacklist
ALTER TABLE hydra_oauth2_jti_blacklist ADD COLUMN "nid" UUID;
ALTER TABLE hydra_oauth2_jti_blacklist ADD CONSTRAINT "hydra_oauth2_jti_blacklist_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000028_nid.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/20220210000001000028_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_logout_request SET nid = (SELECT id FROM networks LIMIT 1);
ALTER TABLE hydra_oauth2_logout_request MODIFY `nid` char(36) NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000028_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_jti_blacklist
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000028_nid.sqlite.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/20220210000001000029_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_jti_blacklist SET nid = (SELECT id FROM networks LIMIT 1);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000029_nid.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/20220210000001000029_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
-- hydra_oauth2_obfuscated_authentication_session
ALTER TABLE hydra_oauth2_obfuscated_authentication_session ADD COLUMN `nid` char(36);
ALTER TABLE hydra_oauth2_obfuscated_authentication_session ADD CONSTRAINT hydra_oauth2_obfuscated_authentication_session_nid_fk_idx FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000029_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE "hydra_oauth2_jti_blacklist" ADD COLUMN "nid" UUID;
ALTER TABLE "hydra_oauth2_jti_blacklist" ADD CONSTRAINT "hydra_oauth2_jti_blacklist_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000029_nid.sqlite.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/20220210000001000030_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_jti_blacklist ALTER nid SET NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000030_nid.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/20220210000001000030_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_obfuscated_authentication_session DROP FOREIGN KEY `hydra_oauth2_obfuscated_authentication_session_client_id_fk`;
ALTER TABLE hydra_oauth2_obfuscated_authentication_session ADD CONSTRAINT `hydra_oauth2_obfuscated_authentication_session_client_id_fk` FOREIGN KEY (`client_id`, `nid`) REFERENCES `hydra_client` (`id`, `nid`) ON DELETE CASCADE;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000030_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_jti_blacklist SET nid = (SELECT id FROM networks LIMIT 1);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000030_nid.sqlite.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/20220210000001000031_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_jti_blacklist_expires_at_idx;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000031_nid.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/20220210000001000031_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
UPDATE hydra_oauth2_obfuscated_authentication_session SET nid = (SELECT id FROM networks LIMIT 1);
ALTER TABLE hydra_oauth2_obfuscated_authentication_session MODIFY `nid` char(36) NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000031_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_jti_blacklist ALTER nid SET NOT NULL;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000031_nid.sqlite.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/20220210000001000032_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE INDEX hydra_oauth2_jti_blacklist_expires_at_idx ON hydra_oauth2_jti_blacklist (expires_at ASC, nid ASC);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000032_nid.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/20220210000001000032_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_obfuscated_authentication_session DROP PRIMARY KEY, ADD PRIMARY KEY (subject, client_id, nid);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000032_nid.postgres.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
DROP INDEX hydra_oauth2_jti_blacklist_expiry;
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000032_nid.sqlite.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/20220210000001000033_nid.cockroach.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
ALTER TABLE hydra_oauth2_jti_blacklist DROP CONSTRAINT "primary";
ALTER TABLE hydra_oauth2_jti_blacklist ADD CONSTRAINT hydra_oauth2_jti_blacklist_pkey PRIMARY KEY (signature ASC, nid ASC);
|
SQL
|
hydra/persistence/sql/migrations/20220210000001000033_nid.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/20220210000001000033_nid.mysql.up.sql
|
-- Migration generated by the command below; DO NOT EDIT.
-- hydra:generate hydra migrate gen
CREATE UNIQUE INDEX hydra_oauth2_obfuscated_authentication_session_so_nid_idx ON hydra_oauth2_obfuscated_authentication_session (client_id ASC, subject_obfuscated ASC, nid ASC);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.