All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m27s
21 lines
654 B
SQL
21 lines
654 B
SQL
CREATE TABLE "deployment_history" (
|
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"server_id" uuid,
|
|
"build_number" integer NOT NULL,
|
|
"status" text NOT NULL,
|
|
"message" text,
|
|
"created_at" timestamp DEFAULT now()
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE "app_stats" (
|
|
"id" text PRIMARY KEY DEFAULT 'primary' NOT NULL,
|
|
"current_build" integer DEFAULT 1 NOT NULL,
|
|
"last_build_at" timestamp,
|
|
"last_deploy_at" timestamp,
|
|
"building" boolean DEFAULT false NOT NULL,
|
|
"updating" boolean DEFAULT false NOT NULL,
|
|
"last_updated" timestamp DEFAULT now(),
|
|
"meta" jsonb DEFAULT '{}'::jsonb
|
|
);
|
|
--> statement-breakpoint
|
|
DROP TABLE "stats" CASCADE; |