bright-wire-30388
12/12/2022, 10:16 PMketo migrate up --yes
gives the below sql error.
can I confidently report keto doesn’t support 5.7?
DEBU[2022-12-12T22:12:44Z] Migration has not been applied but it might be a legacy migration, investigating. audience=application service_name=Ory Keto service_version=v0.10.0-alpha.0 version=20220513200400000001
DEBU[2022-12-12T22:12:44Z] Migration has not yet been applied, running migration. audience=application service_name=Ory Keto service_version=v0.10.0-alpha.0 version=20220513200400000001
DEBU[2022-12-12T22:12:44Z] 0.3320 seconds audience=application service_name=Ory Keto service_version=v0.10.0-alpha.0
Could not apply migrations: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONSTRAINT keto_uuid_mappings_chk_1' at line 1
error executing migrations/sql/20220513200400000001_uuid-mapping-remove-check.mysql.up.sql, sql: ALTER TABLE keto_uuid_mappings DROP CONSTRAINT keto_uuid_mappings_chk_1;
miniature-caravan-99560
02/16/2023, 5:19 AMenough-yak-81379
02/16/2023, 7:05 AMminiature-caravan-99560
02/16/2023, 7:23 AMstale-engineer-10188
02/22/2023, 3:23 AMMySQL 5.7
which is listed as supported on that page, however that page is actually for Hydra not Keto.
We have a working installation of Keto v0.9.0
but with v0.10.0
there appears to be a new historic migration that's been added.
v0.9.0
Current status:
Version Name Status
20150100000001000000 networks Applied
20201110175414000000 relationtuple Applied
20201110175414000001 relationtuple Applied
20210623162417000000 relationtuple Applied
20210623162417000001 relationtuple Applied
20210914134624000000 legacy-cleanup Applied
20220217152313000000 nid_fk Applied
20220512151000000000 indices Applied
20220513200300000000 create-intermediary-uuid-table Applied
20220513200400000000 create-uuid-mapping-table Applied
20220513200500000000 migrate-strings-to-uuids Applied
20220513200600000000 drop-old-non-uuid-table Applied
20220513200600000001 drop-old-non-uuid-table Applied
All migrations are already applied, there is nothing to do.
v0.10.0
Current status:
Version Name Status
20150100000001000000 networks Applied
20201110175414000000 relationtuple Applied
20201110175414000001 relationtuple Applied
20210623162417000000 relationtuple Applied
20210623162417000001 relationtuple Applied
20210914134624000000 legacy-cleanup Applied
20220217152313000000 nid_fk Applied
20220512151000000000 indices Applied
20220513200300000000 create-intermediary-uuid-table Applied
20220513200400000000 create-uuid-mapping-table Applied
20220513200400000001 uuid-mapping-remove-check Pending <----- New migration who dis?
20220513200500000000 migrate-strings-to-uuids Pending
20220513200600000000 drop-old-non-uuid-table Pending
20220513200600000001 drop-old-non-uuid-table Pending
Applying migrations...
Could not apply migrations: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONSTRAINT keto_uuid_mappings_chk_1' at line 1
error executing migrations/sql/20220513200400000001_uuid-mapping-remove-check.mysql.up.sql, sql: ALTER TABLE keto_uuid_mappings DROP CONSTRAINT keto_uuid_mappings_chk_1;
steep-lamp-91158