{"id":"7e9c32a3e9095177","repo":"drizzle-team/drizzle-orm","slug":"column-with-type-col-columntype-is-not-supporte","errorCode":null,"errorMessage":"column with type ${col.columnType} is not supported for now.","messagePattern":"column with type (.+?) is not supported for now\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"drizzle-seed/src/services/SeedService.ts","lineNumber":272,"sourceCode":"\t\t\t\telse if (connectionType === 'postgresql') {\n\t\t\t\t\tcolumnPossibleGenerator.generator = this.selectGeneratorForPostgresColumn(\n\t\t\t\t\t\ttable,\n\t\t\t\t\t\tcol,\n\t\t\t\t\t);\n\t\t\t\t} else if (connectionType === 'mysql') {\n\t\t\t\t\tcolumnPossibleGenerator.generator = this.selectGeneratorForMysqlColumn(\n\t\t\t\t\t\ttable,\n\t\t\t\t\t\tcol,\n\t\t\t\t\t);\n\t\t\t\t} else if (connectionType === 'sqlite') {\n\t\t\t\t\tcolumnPossibleGenerator.generator = this.selectGeneratorForSqlite(\n\t\t\t\t\t\ttable,\n\t\t\t\t\t\tcol,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tif (columnPossibleGenerator.generator === undefined) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t`column with type ${col.columnType} is not supported for now.`,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst arrayGen = columnPossibleGenerator.generator.replaceIfArray();\n\t\t\t\tif (arrayGen !== undefined) {\n\t\t\t\t\tcolumnPossibleGenerator.generator = arrayGen;\n\t\t\t\t}\n\n\t\t\t\tcolumnPossibleGenerator.generator.isUnique = col.isUnique;\n\t\t\t\tconst uniqueGen = columnPossibleGenerator.generator.replaceIfUnique();\n\t\t\t\tif (uniqueGen !== undefined) {\n\t\t\t\t\tcolumnPossibleGenerator.generator = uniqueGen;\n\t\t\t\t}\n\n\t\t\t\t// selecting version of generator\n\t\t\t\tcolumnPossibleGenerator.generator = this.selectVersionOfGenerator(columnPossibleGenerator.generator);\n","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/drizzle-team/drizzle-orm/blob/b7862528fd8fc39bc2653a6c18dad7c1f4e68d10/drizzle-seed/src/services/SeedService.ts#L254-L290","documentation":"After drizzle-seed calls its per-dialect column-type resolver (selectGeneratorForPostgresColumn / selectGeneratorForMysqlColumn / selectGeneratorForSqlite), it expects a generator instance back. If the resolver returns undefined for the column's columnType, no generator exists for that type and seeding cannot proceed.","triggerScenarios":"Using a column type drizzle-seed has no generator for, such as exotic Postgres types (e.g. tsvector, xml, money, bit varying), custom user-defined types, or a newly added drizzle-orm type that seed hasn't mapped yet.","commonSituations":"Adding a GIS/geometry column, a tsvector full-text column, or a domain type; upgrading drizzle-orm to a version with new column types not yet supported by the installed drizzle-seed.","solutions":["Provide an explicit generator in refinements.columns for the unsupported column so the auto-resolver is bypassed.","Temporarily change the column to a supported type (e.g. text) for seeding purposes.","Make the column nullable and exclude it from refinements so it defaults to null."],"exampleFix":"// before — tsvector column has no auto generator\nsearchVector: tsvector('search_vector')\n// after — supply a generator in refinements\nrefinements = {\n  myTable: {\n    columns: {\n      searchVector: { generator: generators.string({ minLength: 1, maxLength: 50 }) }\n    }\n  }\n};","handlingStrategy":"validation","validationCode":"// Pre-check whether a column type is in the supported set for the target dialect.\nconst SUPPORTED_PREFIXES = ['serial', 'integer', 'smallint', 'bigint', 'varchar', 'text', 'boolean', 'date', 'timestamp', 'decimal', 'numeric', 'real', 'double', 'json', 'jsonb', 'uuid', 'interval', 'time'];\nfunction isColumnTypeSupported(columnType: string): boolean {\n  const base = columnType.replace(/\\[\\w*\\]/g, '');\n  return SUPPORTED_PREFIXES.some((p) => base.includes(p));\n}\n// If false, supply a refinement generator for that column.","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Provide explicit refinements for exotic column types (tsvector, xml, geometry, etc.).","After upgrading drizzle-orm, check drizzle-seed release notes for newly supported types.","Run seed on a small count first to surface unsupported types early."],"tags":["unsupported-type","column-type","generator-config"],"analyzedSha":"b7862528fd8fc39bc2653a6c18dad7c1f4e68d10","analyzedAt":"2026-08-03T18:11:14.318Z","schemaVersion":2}