@@ -17,11 +17,14 @@ CREATE TABLE IF NOT EXISTS _asset (
1717 content_type text,
1818 url text,
1919 _locale text not null,
20+ _status text not null,
2021 _version integer not null default 0,
2122 _created_at timestamp without time zone default now(),
2223 _created_by text not null,
2324 _updated_at timestamp without time zone default now(),
24- _updated_by text not null
25+ _updated_by text not null,
26+ _published_at timestamp without time zone,
27+ _published_by text
2528);
2629CREATE UNIQUE INDEX IF NOT EXISTS _asset__sys_id__locale ON _asset (_sys_id, _locale);
2730--
@@ -54,11 +57,14 @@ CREATE TABLE IF NOT EXISTS {{ $tbl.TableName }} (
5457 "{{ .ColumnName }}" {{ .ColumnType }},
5558 {{- end }}
5659 _locale text not null,
60+ _status text not null,
5761 _version integer not null default 0,
5862 _created_at timestamp without time zone not null default now(),
5963 _created_by text not null,
6064 _updated_at timestamp without time zone not null default now(),
61- _updated_by text not null
65+ _updated_by text not null,
66+ _published_at timestamp without time zone,
67+ _published_by text
6268);
6369--
6470CREATE UNIQUE INDEX IF NOT EXISTS idx_{{ $tbl.TableName }}__sys_id_locale ON {{ $tbl.TableName }}(_sys_id,_locale);
101107 description = EXCLUDED.description,
102108 displayField = EXCLUDED.displayField,
103109 fields = EXCLUDED.fields,
104- _version= EXCLUDED._version,
105- _updated_at= EXCLUDED._updated_at,
106- _updated_by= EXCLUDED._updated_by
110+ _version = EXCLUDED._version,
111+ _updated_at = EXCLUDED._updated_at,
112+ _updated_by = EXCLUDED._updated_by
107113;
108114--
109115{{- end -}}
0 commit comments