migrations for 2 tables

This commit is contained in:
Lucas Tettamanti
2026-01-02 15:31:10 -03:00
parent 947b0bd1ee
commit 556c49e53d
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
-- migrate:up
ALTER TABLE wa_identity_map
ADD COLUMN provider text NOT NULL DEFAULT 'woo';
ALTER TABLE wa_identity_map
RENAME COLUMN woo_customer_id TO external_customer_id;
-- migrate:down
ALTER TABLE wa_identity_map
DROP COLUMN provider;
ALTER TABLE wa_identity_map
RENAME COLUMN external_customer_id TO woo_customer_id;