feat: AMPP folder sync integration — pre-create folder hierarchy on upload, expose lookup endpoint for Script Task: schema_patch_ampp.sql

This commit is contained in:
Zac Gaetano 2026-04-18 13:42:07 -04:00
parent 0fa9e960d4
commit 2b9499a606

View file

@ -0,0 +1,13 @@
-- Wild Dragon AMPP Integration Schema Patch
-- Run after initial schema.sql
-- Key/value store for runtime configuration (AMPP credentials, etc.)
CREATE TABLE IF NOT EXISTS settings (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
updated_at TIMESTAMPTZ DEFAULT NOW()
);
-- Track which AMPP folder each asset was synced to
ALTER TABLE assets ADD COLUMN IF NOT EXISTS ampp_folder_id TEXT;
ALTER TABLE assets ADD COLUMN IF NOT EXISTS ampp_synced_at TIMESTAMPTZ;