db_script_v1.4.0.sql 396 字节
ALTER TABLE files ADD file_from TEXT;
ALTER TABLE files ADD app_key TEXT;
Update files set file_from = 'ByteBankWebClient';

CREATE INDEX IF NOT EXISTS idx_files_app_key ON metadata.files USING btree(app_key);


alter table metadata.tables add column apply_at timestamptz;
update metadata.tables set apply_at = null where  table_type in ('MainTable','SubTable','SideTable') and  apply_at is null;