language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
SQL
hydra/persistence/sql/migrations/20220210000001000033_nid.postgres.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 USING btree (expires_at ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000033_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/20220210000001000034_nid.cockroach.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" UUID; 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/20220210000001000034_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/20220210000001000034_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- hydra_oauth2_oidc ALTER TABLE `hydra_oauth2_oidc` ADD COLUMN `nid` char(36); ALTER TABLE `hydra_oauth2_oidc` ADD CONSTRAINT `hydra_oauth2_oidc_nid_fk_idx` FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000034_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_jti_blacklist DROP CONSTRAINT "hydra_oauth2_jti_blacklist_pkey"; ALTER TABLE hydra_oauth2_jti_blacklist ADD PRIMARY KEY (signature, nid);
SQL
hydra/persistence/sql/migrations/20220210000001000034_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/20220210000001000035_nid.cockroach.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);
SQL
hydra/persistence/sql/migrations/20220210000001000035_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/20220210000001000035_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen UPDATE hydra_oauth2_oidc SET nid = (SELECT id FROM networks LIMIT 1); ALTER TABLE hydra_oauth2_oidc MODIFY `nid` char(36) NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000035_nid.postgres.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" UUID; 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/20220210000001000035_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/20220210000001000036_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_logout_request ALTER nid SET NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000036_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/20220210000001000036_nid.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_client_id_fk`; ALTER TABLE hydra_oauth2_oidc ADD CONSTRAINT `hydra_oauth2_oidc_client_id_fk` FOREIGN KEY (`client_id`, `nid`) REFERENCES `hydra_client` (`id`, `nid`) ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000036_nid.postgres.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);
SQL
hydra/persistence/sql/migrations/20220210000001000036_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/20220210000001000037_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen 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/20220210000001000037_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/20220210000001000037_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen DROP INDEX hydra_oauth2_oidc_request_id_idx ON hydra_oauth2_oidc;
SQL
hydra/persistence/sql/migrations/20220210000001000037_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_logout_request ALTER nid SET NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000037_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/20220210000001000038_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen DROP INDEX hydra_oauth2_logout_request_client_id_idx;
SQL
hydra/persistence/sql/migrations/20220210000001000038_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/20220210000001000038_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen CREATE INDEX hydra_oauth2_oidc_request_id_idx ON hydra_oauth2_oidc (request_id ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000038_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen 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/20220210000001000038_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/20220210000001000039_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen CREATE INDEX hydra_oauth2_logout_request_client_id_idx ON hydra_oauth2_logout_request (client_id ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000039_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/20220210000001000039_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- hydra_oauth2_pkce ALTER TABLE hydra_oauth2_pkce ADD COLUMN `nid` char(36); ALTER TABLE hydra_oauth2_pkce ADD CONSTRAINT hydra_oauth2_pkce_nid_fk_idx FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000039_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen DROP INDEX hydra_oauth2_logout_request_client_id_idx;
SQL
hydra/persistence/sql/migrations/20220210000001000039_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/20220210000001000040_nid.cockroach.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" UUID; 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/20220210000001000040_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/20220210000001000040_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen UPDATE hydra_oauth2_pkce SET nid = (SELECT id FROM networks LIMIT 1); ALTER TABLE hydra_oauth2_pkce MODIFY `nid` char(36) NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000040_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen CREATE INDEX hydra_oauth2_logout_request_client_id_idx ON hydra_oauth2_logout_request (client_id ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000040_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/20220210000001000041_nid.cockroach.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);
SQL
hydra/persistence/sql/migrations/20220210000001000041_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/20220210000001000041_nid.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_client_id_fk`; ALTER TABLE hydra_oauth2_pkce ADD CONSTRAINT `hydra_oauth2_pkce_client_id_fk` FOREIGN KEY (`client_id`, `nid`) REFERENCES `hydra_client` (`id`, `nid`) ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000041_nid.postgres.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" UUID; 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/20220210000001000041_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/20220210000001000042_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_obfuscated_authentication_session ALTER nid SET NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000042_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/20220210000001000042_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- DROP INDEX hydra_oauth2_pkce_challenge_id_idx ON hydra_oauth2_pkce; DROP INDEX hydra_oauth2_pkce_request_id_idx ON hydra_oauth2_pkce;
SQL
hydra/persistence/sql/migrations/20220210000001000042_nid.postgres.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);
SQL
hydra/persistence/sql/migrations/20220210000001000042_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/20220210000001000043_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen 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/20220210000001000043_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/20220210000001000043_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- CREATE INDEX hydra_oauth2_pkce_challenge_id_idx ON hydra_oauth2_pkce (challenge_id ASC); CREATE INDEX hydra_oauth2_pkce_request_id_idx ON hydra_oauth2_pkce (request_id ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000043_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_obfuscated_authentication_session ALTER nid SET NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000043_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/20220210000001000044_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_obfuscated_authentication_session DROP CONSTRAINT "primary"; ALTER TABLE hydra_oauth2_obfuscated_authentication_session ADD CONSTRAINT "hydra_oauth2_obfuscated_authentication_session_pkey" PRIMARY KEY (subject ASC, client_id ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000044_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/20220210000001000044_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- hydra_oauth2_refresh ALTER TABLE hydra_oauth2_refresh ADD COLUMN `nid` char(36); ALTER TABLE hydra_oauth2_refresh ADD CONSTRAINT hydra_oauth2_refresh_nid_fk_idx FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000044_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen 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/20220210000001000044_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/20220210000001000045_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen DROP INDEX hydra_oauth2_obfuscated_authentication_session_client_id_subject_obfuscated_idx;
SQL
hydra/persistence/sql/migrations/20220210000001000045_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/20220210000001000045_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen UPDATE hydra_oauth2_refresh SET nid = (SELECT id FROM networks LIMIT 1); ALTER TABLE hydra_oauth2_refresh MODIFY `nid` char(36) NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000045_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_obfuscated_authentication_session DROP CONSTRAINT "hydra_oauth2_obfuscated_authentication_session_pkey"; ALTER TABLE hydra_oauth2_obfuscated_authentication_session ADD PRIMARY KEY (subject, client_id, nid);
SQL
hydra/persistence/sql/migrations/20220210000001000045_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/20220210000001000046_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen CREATE UNIQUE INDEX hydra_oauth2_obfuscated_authentication_session_client_id_subject_obfuscated_idx ON hydra_oauth2_obfuscated_authentication_session (client_id ASC, subject_obfuscated ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000046_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/20220210000001000046_nid.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_client_id_fk`; ALTER TABLE hydra_oauth2_refresh ADD CONSTRAINT `hydra_oauth2_refresh_client_id_fk` FOREIGN KEY (`client_id`, `nid`) REFERENCES `hydra_client` (`id`, `nid`) ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000046_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen DROP INDEX hydra_oauth2_obfuscated_authentication_session_so_idx;
SQL
hydra/persistence/sql/migrations/20220210000001000046_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/20220210000001000047_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- hydra_oauth2_oidc ALTER TABLE hydra_oauth2_oidc ADD COLUMN "nid" UUID; ALTER TABLE hydra_oauth2_oidc ADD CONSTRAINT "hydra_oauth2_oidc_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000047_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/20220210000001000047_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- DROP INDEX hydra_oauth2_refresh_challenge_id_idx ON hydra_oauth2_refresh; DROP INDEX hydra_oauth2_refresh_client_id_subject_idx ON hydra_oauth2_refresh; DROP INDEX hydra_oauth2_refresh_request_id_idx ON hydra_oauth2_refresh;
SQL
hydra/persistence/sql/migrations/20220210000001000047_nid.postgres.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_idx ON hydra_oauth2_obfuscated_authentication_session USING btree (client_id ASC, subject_obfuscated ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000047_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/20220210000001000048_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen UPDATE hydra_oauth2_oidc SET nid = (SELECT id FROM networks LIMIT 1);
SQL
hydra/persistence/sql/migrations/20220210000001000048_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/20220210000001000048_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- CREATE INDEX hydra_oauth2_refresh_challenge_id_idx ON hydra_oauth2_refresh (challenge_id ASC); CREATE INDEX hydra_oauth2_refresh_client_id_subject_idx ON hydra_oauth2_refresh (client_id ASC, subject ASC); CREATE INDEX hydra_oauth2_refresh_request_id_idx ON hydra_oauth2_refresh (request_id ASC); -- hydra_jwk ALTER TABLE hydra_jwk ADD COLUMN `nid` char(36); ALTER TABLE hydra_jwk ADD CONSTRAINT hydra_jwk_nid_fk_idx FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000048_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- hydra_oauth2_oidc ALTER TABLE "hydra_oauth2_oidc" ADD COLUMN "nid" UUID; ALTER TABLE "hydra_oauth2_oidc" ADD CONSTRAINT "hydra_oauth2_oidc_nid_fk_idx" FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000048_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/20220210000001000049_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_oidc ALTER nid SET NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000049_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/20220210000001000049_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen UPDATE hydra_jwk SET nid = (SELECT id FROM networks LIMIT 1); ALTER TABLE hydra_jwk MODIFY `nid` char(36) NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000049_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen UPDATE hydra_oauth2_oidc SET nid = (SELECT id FROM networks LIMIT 1);
SQL
hydra/persistence/sql/migrations/20220210000001000049_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/20220210000001000050_nid.cockroach.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_client_id_fk FOREIGN KEY (client_id, nid) REFERENCES hydra_client(id, nid) ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000050_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/20220210000001000050_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen CREATE UNIQUE INDEX hydra_jwk_sid_kid_nid_key ON hydra_jwk (sid ASC, kid ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000050_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_oidc ALTER nid SET NOT NULL;
SQL
hydra/persistence/sql/migrations/20220210000001000050_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/20220210000001000051_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen DROP INDEX hydra_oauth2_oidc_client_id_idx; DROP INDEX hydra_oauth2_oidc_challenge_id_idx; DROP INDEX hydra_oauth2_oidc_request_id_idx;
SQL
hydra/persistence/sql/migrations/20220210000001000051_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/20220210000001000051_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- hydra_oauth2_trusted_jwt_bearer_issuer ALTER TABLE hydra_oauth2_trusted_jwt_bearer_issuer ADD COLUMN `nid` char(36);
SQL
hydra/persistence/sql/migrations/20220210000001000051_nid.postgres.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_client_id_fk FOREIGN KEY (client_id, nid) REFERENCES hydra_client(id, nid) ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000051_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/20220210000001000052_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen CREATE INDEX hydra_oauth2_oidc_client_id_idx ON hydra_oauth2_oidc (client_id ASC, nid ASC); CREATE INDEX hydra_oauth2_oidc_challenge_id_idx ON hydra_oauth2_oidc (challenge_id ASC); CREATE INDEX hydra_oauth2_oidc_request_id_idx ON hydra_oauth2_oidc (request_id ASC, nid ASC);
SQL
hydra/persistence/sql/migrations/20220210000001000052_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/20220210000001000052_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen ALTER TABLE hydra_oauth2_trusted_jwt_bearer_issuer ADD CONSTRAINT hydra_oauth2_trusted_jwt_bearer_issuer_nid_fk_idx FOREIGN KEY (`nid`) REFERENCES `networks` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000052_nid.postgres.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen DROP INDEX hydra_oauth2_oidc_client_id_idx; DROP INDEX hydra_oauth2_oidc_challenge_id_idx; DROP INDEX hydra_oauth2_oidc_request_id_idx;
SQL
hydra/persistence/sql/migrations/20220210000001000052_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/20220210000001000053_nid.cockroach.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen -- hydra_oauth2_pkce ALTER TABLE hydra_oauth2_pkce ADD COLUMN "nid" UUID; ALTER TABLE hydra_oauth2_pkce ADD CONSTRAINT hydra_oauth2_pkce_nid_fk_idx FOREIGN KEY ("nid") REFERENCES "networks" ("id") ON UPDATE RESTRICT ON DELETE CASCADE;
SQL
hydra/persistence/sql/migrations/20220210000001000053_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/20220210000001000053_nid.mysql.up.sql
-- Migration generated by the command below; DO NOT EDIT. -- hydra:generate hydra migrate gen UPDATE hydra_oauth2_trusted_jwt_bearer_issuer SET nid = (SELECT id FROM networks LIMIT 1); ALTER TABLE hydra_oauth2_trusted_jwt_bearer_issuer MODIFY `nid` char(36) NOT NULL;