feat(admin): moved server build/update to full app
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m27s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m27s
This commit is contained in:
17
migrations/0034_groovy_darkhawk.sql
Normal file
17
migrations/0034_groovy_darkhawk.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE TABLE "server_data" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"server" text,
|
||||
"plant_token" text,
|
||||
"id_address" text,
|
||||
"great_plains_plantCode" numeric,
|
||||
"contact_email" text,
|
||||
"contact_phone" text,
|
||||
"active" boolean DEFAULT true,
|
||||
"server_loc" text,
|
||||
"last_updated" timestamp DEFAULT now(),
|
||||
"build_number" integer,
|
||||
"is_upgrading" boolean DEFAULT false
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "plant_token" ON "server_data" USING btree ("plant_token");
|
||||
1
migrations/0035_icy_harpoon.sql
Normal file
1
migrations/0035_icy_harpoon.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "server_data" RENAME COLUMN "great_plains_plantCode" TO "great_plains_plant_code";
|
||||
1
migrations/0036_easy_magus.sql
Normal file
1
migrations/0036_easy_magus.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "server_data" ADD CONSTRAINT "server_data_server_unique" UNIQUE("server");
|
||||
2
migrations/0037_glamorous_joseph.sql
Normal file
2
migrations/0037_glamorous_joseph.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "server_data" DROP CONSTRAINT "server_data_server_unique";--> statement-breakpoint
|
||||
ALTER TABLE "server_data" ADD CONSTRAINT "server_data_plant_token_unique" UNIQUE("plant_token");
|
||||
1
migrations/0038_special_wildside.sql
Normal file
1
migrations/0038_special_wildside.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "server_data" ALTER COLUMN "plant_token" SET NOT NULL;
|
||||
2
migrations/0039_special_the_leader.sql
Normal file
2
migrations/0039_special_the_leader.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DROP INDEX "plant_token";--> statement-breakpoint
|
||||
ALTER TABLE "server_data" ALTER COLUMN "great_plains_plant_code" SET DATA TYPE text;
|
||||
21
migrations/0040_rainy_white_tiger.sql
Normal file
21
migrations/0040_rainy_white_tiger.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
1883
migrations/meta/0034_snapshot.json
Normal file
1883
migrations/meta/0034_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1883
migrations/meta/0035_snapshot.json
Normal file
1883
migrations/meta/0035_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1891
migrations/meta/0036_snapshot.json
Normal file
1891
migrations/meta/0036_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1891
migrations/meta/0037_snapshot.json
Normal file
1891
migrations/meta/0037_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1891
migrations/meta/0038_snapshot.json
Normal file
1891
migrations/meta/0038_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1875
migrations/meta/0039_snapshot.json
Normal file
1875
migrations/meta/0039_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1959
migrations/meta/0040_snapshot.json
Normal file
1959
migrations/meta/0040_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -239,6 +239,55 @@
|
||||
"when": 1776256060808,
|
||||
"tag": "0033_elite_adam_warlock",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 34,
|
||||
"version": "7",
|
||||
"when": 1776732155543,
|
||||
"tag": "0034_groovy_darkhawk",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 35,
|
||||
"version": "7",
|
||||
"when": 1776733278288,
|
||||
"tag": "0035_icy_harpoon",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 36,
|
||||
"version": "7",
|
||||
"when": 1776733364021,
|
||||
"tag": "0036_easy_magus",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 37,
|
||||
"version": "7",
|
||||
"when": 1776733842142,
|
||||
"tag": "0037_glamorous_joseph",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 38,
|
||||
"version": "7",
|
||||
"when": 1776733879132,
|
||||
"tag": "0038_special_wildside",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 39,
|
||||
"version": "7",
|
||||
"when": 1776734237129,
|
||||
"tag": "0039_special_the_leader",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 40,
|
||||
"version": "7",
|
||||
"when": 1776770845947,
|
||||
"tag": "0040_rainy_white_tiger",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user