fix(db): increase integration kind limit from 16 to 64 characters
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE `integrationSecret` MODIFY COLUMN `kind` varchar(64) NOT NULL;
|
||||||
2093
packages/db/migrations/mysql/meta/0035_snapshot.json
Normal file
2093
packages/db/migrations/mysql/meta/0035_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -246,6 +246,13 @@
|
|||||||
"when": 1754929897145,
|
"when": 1754929897145,
|
||||||
"tag": "0034_increase-blob-size",
|
"tag": "0034_increase-blob-size",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 35,
|
||||||
|
"version": "5",
|
||||||
|
"when": 1756701556908,
|
||||||
|
"tag": "0035_increase-secret-kind-length",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "integrationSecret" ALTER COLUMN "kind" SET DATA TYPE varchar(64);
|
||||||
1991
packages/db/migrations/postgresql/meta/0001_snapshot.json
Normal file
1991
packages/db/migrations/postgresql/meta/0001_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,13 @@
|
|||||||
"when": 1754853510707,
|
"when": 1754853510707,
|
||||||
"tag": "0000_initial",
|
"tag": "0000_initial",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 1,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1756701573101,
|
||||||
|
"tag": "0001_increase-secret-kind-length",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ export const integrations = mysqlTable(
|
|||||||
export const integrationSecrets = mysqlTable(
|
export const integrationSecrets = mysqlTable(
|
||||||
"integrationSecret",
|
"integrationSecret",
|
||||||
{
|
{
|
||||||
kind: varchar({ length: 16 }).$type<IntegrationSecretKind>().notNull(),
|
kind: varchar({ length: 64 }).$type<IntegrationSecretKind>().notNull(),
|
||||||
value: text().$type<`${string}.${string}`>().notNull(),
|
value: text().$type<`${string}.${string}`>().notNull(),
|
||||||
updatedAt: timestamp()
|
updatedAt: timestamp()
|
||||||
.$onUpdateFn(() => new Date())
|
.$onUpdateFn(() => new Date())
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ export const integrations = pgTable(
|
|||||||
export const integrationSecrets = pgTable(
|
export const integrationSecrets = pgTable(
|
||||||
"integrationSecret",
|
"integrationSecret",
|
||||||
{
|
{
|
||||||
kind: varchar({ length: 16 }).$type<IntegrationSecretKind>().notNull(),
|
kind: varchar({ length: 64 }).$type<IntegrationSecretKind>().notNull(),
|
||||||
value: text().$type<`${string}.${string}`>().notNull(),
|
value: text().$type<`${string}.${string}`>().notNull(),
|
||||||
updatedAt: timestamp()
|
updatedAt: timestamp()
|
||||||
.$onUpdateFn(() => new Date())
|
.$onUpdateFn(() => new Date())
|
||||||
|
|||||||
Reference in New Issue
Block a user