Skip to content

Commit 2915732

Browse files
committed
sync ext
1 parent dcb9757 commit 2915732

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

  • packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table

packages/meta/db-meta-schema/deploy/schemas/collections_public/tables/table/table.sql

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ CREATE TABLE collections_public.table (
1212
database_id uuid NOT NULL DEFAULT uuid_nil(),
1313

1414
schema_id uuid NOT NULL,
15-
15+
1616
name text NOT NULL,
1717

1818
label text,
1919
description text,
20-
20+
2121
smart_tags jsonb,
22-
22+
2323
category collections_public.table_category NOT NULL DEFAULT 'app',
2424
module text NULL,
2525
scope int NULL,
2626

2727
use_rls boolean NOT NULL DEFAULT FALSE,
28-
28+
2929
timestamps boolean NOT NULL DEFAULT FALSE,
3030
peoplestamps boolean NOT NULL DEFAULT FALSE,
3131

@@ -34,17 +34,20 @@ CREATE TABLE collections_public.table (
3434

3535
tags citext[] NOT NULL DEFAULT '{}',
3636

37-
--
37+
--
3838

3939
CONSTRAINT db_fkey FOREIGN KEY (database_id) REFERENCES collections_public.database (id) ON DELETE CASCADE,
4040
CONSTRAINT schema_fkey FOREIGN KEY (schema_id) REFERENCES collections_public.schema (id) ON DELETE CASCADE,
41-
41+
4242
UNIQUE (database_id, name)
4343
);
4444

4545
ALTER TABLE collections_public.table ADD COLUMN
4646
inherits_id uuid NULL REFERENCES collections_public.table(id);
4747

48+
ALTER TABLE collections_public.table ADD COLUMN
49+
tags citext[] NOT NULL DEFAULT '{}';
50+
4851
COMMENT ON CONSTRAINT schema_fkey ON collections_public.table IS E'@omit manyToMany';
4952
COMMENT ON CONSTRAINT db_fkey ON collections_public.table IS E'@omit manyToMany';
5053

0 commit comments

Comments
 (0)