fix(contorller): env corrections on where to look for the file when running
This commit is contained in:
21
migrations/0010_watery_gravity.sql
Normal file
21
migrations/0010_watery_gravity.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
CREATE TABLE "serverData" (
|
||||
"server_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"serverDNS" text,
|
||||
"plantToken" text,
|
||||
"ipAddress" text,
|
||||
"greatPlainsPlantCode" numeric,
|
||||
"streetAddress" text,
|
||||
"cityState" text,
|
||||
"zipcode" numeric,
|
||||
"contactEmail" text,
|
||||
"contactPhone" text,
|
||||
"customerTiAcc" text,
|
||||
"lstServerPort" numeric,
|
||||
"active" boolean DEFAULT true,
|
||||
"serverLoc" text,
|
||||
"lastUpdated" timestamp DEFAULT now(),
|
||||
"isUpgrading" boolean DEFAULT false
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "plantToken" ON "serverData" USING btree ("plantToken");
|
||||
9
migrations/0011_careless_banshee.sql
Normal file
9
migrations/0011_careless_banshee.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
ALTER TABLE "serverData" ALTER COLUMN "serverDNS" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "plantToken" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "ipAddress" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "greatPlainsPlantCode" SET DATA TYPE integer;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "greatPlainsPlantCode" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "zipcode" SET DATA TYPE integer;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "lstServerPort" SET DATA TYPE integer;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "lstServerPort" SET NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "serverData" ALTER COLUMN "serverLoc" SET NOT NULL;
|
||||
1056
migrations/meta/0010_snapshot.json
Normal file
1056
migrations/meta/0010_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1056
migrations/meta/0011_snapshot.json
Normal file
1056
migrations/meta/0011_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -71,6 +71,20 @@
|
||||
"when": 1758891252758,
|
||||
"tag": "0009_cultured_slayback",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 10,
|
||||
"version": "7",
|
||||
"when": 1759193957132,
|
||||
"tag": "0010_watery_gravity",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 11,
|
||||
"version": "7",
|
||||
"when": 1759195276875,
|
||||
"tag": "0011_careless_banshee",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user