Browse Source

docs: pg init sql (#1210)

Co-authored-by: tanxiao <tanxiao@asiainfo.com>
tags/v5.14.0
xtan GitHub 3 years ago
parent
commit
fbff60eefb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      docker/initsql_for_postgres/a-n9e-for-Postgres.sql

+ 4
- 0
docker/initsql_for_postgres/a-n9e-for-Postgres.sql View File

@@ -198,7 +198,9 @@ CREATE TABLE board (
id bigserial not null ,
group_id bigint not null default 0 ,
name varchar(191) not null,
ident varchar(200) not null default '',
tags varchar(255) not null ,
public smallint not null default 0,
create_at bigint not null default 0,
create_by varchar(64) not null default '',
update_at bigint not null default 0,
@@ -208,6 +210,8 @@ ALTER TABLE board ADD CONSTRAINT board_pk PRIMARY KEY (id);
ALTER TABLE board ADD CONSTRAINT board_un UNIQUE (group_id,"name");
COMMENT ON COLUMN board.group_id IS 'busi group id';
COMMENT ON COLUMN board.tags IS 'split by space';
COMMENT ON COLUMN board.public IS '0:false 1:true';
CREATE INDEX board_ident_idx ON board (ident);

-- for dashboard new version
CREATE TABLE board_payload (


Loading…
Cancel
Save