mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
v1.36.0
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
CREATE TABLE "pi_template"
|
||||
(
|
||||
"id" bigint PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY NOT NULL,
|
||||
"user_id" bigint,
|
||||
"pipeline_id" bigint,
|
||||
"title" varchar(1024),
|
||||
"content" text,
|
||||
"order" bigint,
|
||||
"desc" varchar(1024),
|
||||
"disabled" boolean NOT NULL DEFAULT (false),
|
||||
"create_time" timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
||||
"update_time" timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP)
|
||||
);
|
||||
|
||||
CREATE INDEX "index_template_user_id" ON "pi_template" ("user_id");
|
||||
CREATE INDEX "index_template_pipeline_id" ON "pi_template" ("pipeline_id");
|
||||
|
||||
ALTER TABLE pi_pipeline ADD COLUMN "template_id" bigint DEFAULT (0);
|
||||
ALTER TABLE pi_pipeline ADD COLUMN "is_template" boolean DEFAULT (false);
|
||||
CREATE INDEX "index_pipeline_template_id" ON "pi_pipeline" ("template_id");
|
||||
Reference in New Issue
Block a user