mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-29 10:54:36 +01:00
Fix migrations ordering (#656)
This commit is contained in:
@@ -222,10 +222,6 @@ pub(crate) fn current_migrations() -> Vec<&'static str> {
|
||||
ALTER TABLE send_swaps ADD COLUMN timeout_block_height INTEGER NOT NULL DEFAULT 0;
|
||||
",
|
||||
"
|
||||
ALTER TABLE receive_swaps ADD COLUMN destination_pubkey TEXT;
|
||||
ALTER TABLE send_swaps ADD COLUMN destination_pubkey TEXT;
|
||||
",
|
||||
"
|
||||
ALTER TABLE receive_swaps ADD COLUMN version INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE send_swaps ADD COLUMN version INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE chain_swaps ADD COLUMN version INTEGER NOT NULL DEFAULT 0;
|
||||
@@ -248,5 +244,9 @@ pub(crate) fn current_migrations() -> Vec<&'static str> {
|
||||
WHERE id = NEW.id;
|
||||
END;
|
||||
",
|
||||
"
|
||||
ALTER TABLE receive_swaps ADD COLUMN destination_pubkey TEXT;
|
||||
ALTER TABLE send_swaps ADD COLUMN destination_pubkey TEXT;
|
||||
",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user