boxemike
boxemike
DTDrizzle Team
Created by boxemike on 5/9/2024 in #help
enum label already exists
Running drizzle-kit push in the latest version gives me this strange error:
error: enum label "CLOSED" already exists
at C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:62378:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.query (C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:104414:26)
at async pgPush (C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:107483:13)
at async Command.<anonymous> (C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:114367:7) {
length: 92,
severity: 'ERROR',
code: '42710',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'pg_enum.c',
line: '267',
routine: 'AddEnumLabel'
}
error: enum label "CLOSED" already exists
at C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:62378:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.query (C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:104414:26)
at async pgPush (C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:107483:13)
at async Command.<anonymous> (C:\Boxem\packages\core-db\node_modules\drizzle-kit\bin.cjs:114367:7) {
length: 92,
severity: 'ERROR',
code: '42710',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'pg_enum.c',
line: '267',
routine: 'AddEnumLabel'
}
I didnt change any enum with that label. Why the hell is drizzle-kit trying to add an enum label that already exists?
2 replies