Fix types.

This commit is contained in:
Sam Rose 2024-12-03 12:23:07 +00:00
parent e9242dfd11
commit d058b63ea8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ export function generateColumnDefinition(config: {
let { externalType, autocolumn, name, presence, options } = config
let foundType = FieldType.STRING
const lowerCaseType = externalType.toLowerCase()
let matchingTypes = []
let matchingTypes: { external: string; internal: PrimitiveTypes }[] = []
// In at least MySQL, the external type of an ENUM column is "enum('option1',
// 'option2', ...)", which can potentially contain any type name as a