Permite subir media sin URL; previews Google PMax por ratio; calendario anual estilo Miia con filtros IG/FB y LinkedIn; seguimiento con selector de fechas, KPIs y cuadro de notas. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
815 B
SQL
36 lines
815 B
SQL
-- Expand creatives.format for Google Performance Max asset ratios + upload fields
|
|
-- Idempotent.
|
|
|
|
alter table public.creatives drop constraint if exists creatives_format_check;
|
|
|
|
alter table public.creatives
|
|
add constraint creatives_format_check
|
|
check (
|
|
format is null
|
|
or format in (
|
|
'image',
|
|
'video',
|
|
'carousel',
|
|
'reel',
|
|
'story',
|
|
'rsa',
|
|
'pmax',
|
|
'pmax_landscape',
|
|
'pmax_square',
|
|
'pmax_portrait',
|
|
'pmax_vertical',
|
|
'pmax_logo',
|
|
'youtube',
|
|
'other'
|
|
)
|
|
);
|
|
|
|
alter table public.creatives
|
|
add column if not exists storage_path text;
|
|
|
|
alter table public.creatives
|
|
add column if not exists mime_type text;
|
|
|
|
comment on column public.creatives.storage_path is
|
|
'Path in tenant-assets bucket for uploaded creative media';
|