Skip to content

Commit 324cf14

Browse files
authored
fix: migration issues
* fix: flows migration Set the `flows.data` column type to text instead of a string with specific size because doing the latter fails on MySQL/MariaDB. * fix: fix down migrations
1 parent c2758e1 commit 324cf14

5 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
drop_foreign_key("tokens", "tokens_identities_id_fk")
12
drop_column("tokens", "identity_id")
23
drop_column("tokens", "is_flow")
34
drop_column("tokens", "user_created")
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_column("flows", "data", "string", {"size": 65536})
1+
add_column("flows", "data", "text")
22
drop_column("flows", "stash_data")
33
drop_column("flows", "current_state")
44
drop_column("flows", "previous_state")

backend/persistence/migrations/20241118114500_change_webauthn_credentials.down.fizz

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
drop_foreign_key("webauthn_credentials", "webauthn_credential_user_handle_fkey", {"if_exists": false})
1+
drop_foreign_key("webauthn_credentials", "webauthn_credential_user_handle_fkey")
2+
drop_foreign_key("webauthn_credentials", "webauthn_credentials_webauthn_credential_user_handles_id_fk")
23
drop_column("webauthn_credentials", "user_handle_id")
34
drop_table("webauthn_credential_user_handles")
45

backend/persistence/migrations/20250313160348_change_flows.down.fizz

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
change_column("flows", "data", "text")

0 commit comments

Comments
 (0)