mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
Merge the sql script into one file
Keep all the sql script for v1.8 in only one file Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
772367498f
commit
53529b4b1b
@ -23,4 +23,41 @@ WHERE j.policy_id = p.id AND p.deleted = TRUE;
|
||||
|
||||
/*delete replication policy which has been marked as "deleted"*/
|
||||
DELETE FROM replication_policy AS p
|
||||
WHERE p.deleted = TRUE;
|
||||
WHERE p.deleted = TRUE;
|
||||
|
||||
CREATE TABLE registry (
|
||||
id SERIAL PRIMARY KEY NOT NULL,
|
||||
name varchar(256),
|
||||
url varchar(256),
|
||||
credential_type varchar(16),
|
||||
access_key varchar(128),
|
||||
access_secret varchar(1024),
|
||||
type varchar(32),
|
||||
insecure boolean,
|
||||
description varchar(1024),
|
||||
health varchar(16),
|
||||
creation_time timestamp default CURRENT_TIMESTAMP,
|
||||
update_time timestamp default CURRENT_TIMESTAMP,
|
||||
CONSTRAINT unique_registry_name UNIQUE (name)
|
||||
);
|
||||
|
||||
CREATE TABLE "replication_policy_ng" (
|
||||
"id" SERIAL PRIMARY KEY NOT NULL,
|
||||
"name" varchar(256),
|
||||
"description" text,
|
||||
"creator" varchar(256),
|
||||
"src_registry_id" int4,
|
||||
"src_namespaces" varchar(256),
|
||||
"dest_registry_id" int4,
|
||||
"dest_namespace" varchar(256),
|
||||
"override" bool NOT NULL DEFAULT false,
|
||||
"enabled" bool NOT NULL DEFAULT true,
|
||||
"cron_str" varchar(256),
|
||||
"filters" varchar(1024),
|
||||
"replicate_deletion" bool NOT NULL DEFAULT false,
|
||||
"start_time" timestamp(6),
|
||||
"deleted" bool NOT NULL DEFAULT false,
|
||||
"creation_time" timestamp(6) DEFAULT now(),
|
||||
"update_time" timestamp(6) DEFAULT now(),
|
||||
CONSTRAINT unique_policy_ng_name UNIQUE ("name")
|
||||
);
|
@ -1,36 +0,0 @@
|
||||
CREATE TABLE registry (
|
||||
id SERIAL PRIMARY KEY NOT NULL,
|
||||
name varchar(256),
|
||||
url varchar(256),
|
||||
credential_type varchar(16),
|
||||
access_key varchar(128),
|
||||
access_secret varchar(1024),
|
||||
type varchar(32),
|
||||
insecure boolean,
|
||||
description varchar(1024),
|
||||
health varchar(16),
|
||||
creation_time timestamp default CURRENT_TIMESTAMP,
|
||||
update_time timestamp default CURRENT_TIMESTAMP,
|
||||
CONSTRAINT unique_registry_name UNIQUE (name)
|
||||
);
|
||||
|
||||
CREATE TABLE "replication_policy_ng" (
|
||||
"id" SERIAL PRIMARY KEY NOT NULL,
|
||||
"name" varchar(256),
|
||||
"description" text,
|
||||
"creator" varchar(256),
|
||||
"src_registry_id" int4,
|
||||
"src_namespaces" varchar(256),
|
||||
"dest_registry_id" int4,
|
||||
"dest_namespace" varchar(256),
|
||||
"override" bool NOT NULL DEFAULT false,
|
||||
"enabled" bool NOT NULL DEFAULT true,
|
||||
"cron_str" varchar(256),
|
||||
"filters" varchar(1024),
|
||||
"replicate_deletion" bool NOT NULL DEFAULT false,
|
||||
"start_time" timestamp(6),
|
||||
"deleted" bool NOT NULL DEFAULT false,
|
||||
"creation_time" timestamp(6) DEFAULT now(),
|
||||
"update_time" timestamp(6) DEFAULT now(),
|
||||
CONSTRAINT unique_policy_ng_name UNIQUE ("name")
|
||||
);
|
Loading…
Reference in New Issue
Block a user