rake-db 2.36.8 → 2.36.9

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.
package/dist/index.mjs CHANGED
@@ -5485,7 +5485,7 @@ const instantiateDbColumn = (ctx, data, domains, dbColumn) => {
5485
5485
  if (domainColumn) column = new DomainColumn(ctx.columnSchemaConfig, typeName, typeSchema, dbColumn.extension).as(domainColumn);
5486
5486
  else {
5487
5487
  const enumType = data.enums.find((x) => x.name === typeName && x.schemaName === typeSchema);
5488
- if (enumType) column = new EnumColumn(ctx.columnSchemaConfig, typeSchema === ctx.currentSchema ? typeName : typeId, enumType.values, ctx.columnSchemaConfig.type);
5488
+ if (enumType) column = new EnumColumn(ctx.columnSchemaConfig, typeSchema === ctx.currentSchema ? typeName : typeId, enumType.values, ctx.columnSchemaConfig.__schemaType);
5489
5489
  else {
5490
5490
  column = new CustomTypeColumn(ctx.columnSchemaConfig, typeName, typeSchema === "pg_catalog" ? void 0 : typeSchema, dbColumn.extension);
5491
5491
  (ctx.unsupportedTypes[dbColumn.type] ??= []).push(`${dbColumn.schemaName}${dbColumn.tableName ? `.${dbColumn.tableName}` : ""}.${dbColumn.name}`);
@@ -5496,7 +5496,7 @@ const instantiateDbColumn = (ctx, data, domains, dbColumn) => {
5496
5496
  column.data.name = void 0;
5497
5497
  if (!column.data.isNullable) column.data.isNullable = void 0;
5498
5498
  if (dbColumn.arrayDims) {
5499
- const arr = new ArrayColumn(ctx.columnSchemaConfig, column, ctx.columnSchemaConfig.type);
5499
+ const arr = new ArrayColumn(ctx.columnSchemaConfig, column, ctx.columnSchemaConfig.__schemaType);
5500
5500
  arr.data.isNullable = dbColumn.isNullable;
5501
5501
  arr.data.arrayDims = dbColumn.arrayDims;
5502
5502
  column = arr;