woocommerce integration, controllers and handlers ready, evolution api simulator ready

This commit is contained in:
Lucas Tettamanti
2026-01-02 16:49:35 -03:00
parent 556c49e53d
commit 303c3daafe
19 changed files with 637 additions and 141 deletions

View File

@@ -0,0 +1,13 @@
-- migrate:up
ALTER TABLE tenant_ecommerce_config DROP COLUMN credential_secret;
ALTER TABLE tenant_ecommerce_config RENAME COLUMN credential_key TO credential_ref;
ALTER TABLE tenant_ecommerce_config ADD COLUMN enc_consumer_key bytea;
ALTER TABLE tenant_ecommerce_config ADD COLUMN enc_consumer_secret bytea;
ALTER TABLE tenant_ecommerce_config ADD COLUMN encryption_salt bytea DEFAULT gen_random_bytes(16);
-- migrate:down
ALTER TABLE tenant_ecommerce_config DROP COLUMN encryption_salt;
ALTER TABLE tenant_ecommerce_config DROP COLUMN enc_consumer_secret;
ALTER TABLE tenant_ecommerce_config DROP COLUMN enc_consumer_key;
ALTER TABLE tenant_ecommerce_config RENAME COLUMN credential_ref TO credential_key;
ALTER TABLE tenant_ecommerce_config ADD COLUMN credential_secret text NOT NULL;