fix: remove token migration from user

This commit is contained in:
Mauricio Siu
2024-06-27 22:00:32 -06:00
parent 3cfc2d6cd8
commit 899d7565f6
5 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "deployment" ADD COLUMN "description" text;

View File

@@ -1 +0,0 @@
ALTER TABLE "user" ALTER COLUMN "token" DROP NOT NULL;

View File

@@ -1,5 +1,5 @@
{
"id": "7610c85e-c3e4-4a32-8ce9-7f48b298f956",
"id": "ec852f38-886a-43b4-9295-73984ed8ef45",
"prevId": "2d8d7670-b942-4573-9c44-6e81d2a2fa16",
"version": "6",
"dialect": "postgresql",
@@ -465,7 +465,7 @@
"name": "token",
"type": "text",
"primaryKey": false,
"notNull": false
"notNull": true
},
"isRegistered": {
"name": "isRegistered",
@@ -1585,6 +1585,12 @@
"primaryKey": false,
"notNull": true
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "deploymentStatus",

View File

@@ -124,8 +124,8 @@
{
"idx": 17,
"version": "6",
"when": 1719109531147,
"tag": "0017_yummy_norrin_radd",
"when": 1719547174326,
"tag": "0017_minor_post",
"breakpoints": true
}
]

View File

@@ -138,6 +138,7 @@ export const composeRouter = createTRPCRouter({
titleLog: "Manual deployment",
type: "deploy",
applicationType: "compose",
descriptionLog: "",
};
await myQueue.add(
"deployments",
@@ -156,6 +157,7 @@ export const composeRouter = createTRPCRouter({
titleLog: "Rebuild deployment",
type: "redeploy",
applicationType: "compose",
descriptionLog: "",
};
await myQueue.add(
"deployments",