@tstdl/base 0.92.58 → 0.92.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -208,7 +208,7 @@ export function getPgEnum(schema, enumeration, context) {
|
|
|
208
208
|
}
|
|
209
209
|
const values = (isArray(enumeration) ? enumeration : enumValues(enumeration))
|
|
210
210
|
.map((value) => value.toString());
|
|
211
|
-
const dbEnum = dbSchema.enum(enumName, values);
|
|
211
|
+
const dbEnum = dbSchema.enum(toSnakeCase(enumName), values);
|
|
212
212
|
if (enums.has([dbSchema.schemaName, enumeration])) {
|
|
213
213
|
enums.set([dbSchema.schemaName, enumeration], dbEnum);
|
|
214
214
|
}
|