Fix types.
This commit is contained in:
parent
e9242dfd11
commit
d058b63ea8
|
@ -138,7 +138,7 @@ export function generateColumnDefinition(config: {
|
||||||
let { externalType, autocolumn, name, presence, options } = config
|
let { externalType, autocolumn, name, presence, options } = config
|
||||||
let foundType = FieldType.STRING
|
let foundType = FieldType.STRING
|
||||||
const lowerCaseType = externalType.toLowerCase()
|
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',
|
// In at least MySQL, the external type of an ENUM column is "enum('option1',
|
||||||
// 'option2', ...)", which can potentially contain any type name as a
|
// 'option2', ...)", which can potentially contain any type name as a
|
||||||
|
|
Loading…
Reference in New Issue