© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
1 reply
boxemike

enum label already exists

Running
drizzle-kit push
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?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

relation users already exists
Drizzle TeamDTDrizzle Team / help
7mo ago
drizzle-kit generate keeps trying to recreate enum value that already exists
Drizzle TeamDTDrizzle Team / help
13mo ago
error: relation "xxx" already exists
Drizzle TeamDTDrizzle Team / help
13mo ago
Column of relation already exists
Drizzle TeamDTDrizzle Team / help
15mo ago