mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
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,
|
||||
"tag": "0034_increase-blob-size",
|
||||
"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,
|
||||
"tag": "0000_initial",
|
||||
"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(
|
||||
"integrationSecret",
|
||||
{
|
||||
kind: varchar({ length: 16 }).$type<IntegrationSecretKind>().notNull(),
|
||||
kind: varchar({ length: 64 }).$type<IntegrationSecretKind>().notNull(),
|
||||
value: text().$type<`${string}.${string}`>().notNull(),
|
||||
updatedAt: timestamp()
|
||||
.$onUpdateFn(() => new Date())
|
||||
|
||||
@@ -207,7 +207,7 @@ export const integrations = pgTable(
|
||||
export const integrationSecrets = pgTable(
|
||||
"integrationSecret",
|
||||
{
|
||||
kind: varchar({ length: 16 }).$type<IntegrationSecretKind>().notNull(),
|
||||
kind: varchar({ length: 64 }).$type<IntegrationSecretKind>().notNull(),
|
||||
value: text().$type<`${string}.${string}`>().notNull(),
|
||||
updatedAt: timestamp()
|
||||
.$onUpdateFn(() => new Date())
|
||||
|
||||
Reference in New Issue
Block a user