rake-db 2.20.28 → 2.21.0

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.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as orchid_core from 'orchid-core';
2
2
  import { MaybeArray, RawSQLBase, ColumnDataCheckBase, RecordString, EmptyObject, ColumnSchemaConfig, MaybePromise, RecordOptionalString, ColumnTypeBase, ForeignKeyTable, SingleSql } from 'orchid-core';
3
3
  import * as pqb from 'pqb';
4
- import { TableData, ColumnsShape, NoPrimaryKeyOption, ColumnType, EnumColumn, raw, Adapter, DbResult, TransactionAdapter, QueryLogObject, TableDataFn, TableDataItem, DbDomainArg, TextColumn, Db as Db$1, QueryArraysResult, AdapterOptions, DefaultColumnTypes, DefaultSchemaConfig, QueryLogOptions, SearchWeight, ColumnsByType } from 'pqb';
4
+ import { TableData, ColumnsShape, NoPrimaryKeyOption, ColumnType, EnumColumn, raw, Adapter, DbResult, TransactionAdapter, QueryLogObject, TableDataFn, TableDataItem, DbDomainArg, Db as Db$1, QueryArraysResult, AdapterOptions, DefaultColumnTypes, DefaultSchemaConfig, QueryLogOptions, SearchWeight, ColumnsByType } from 'pqb';
5
5
 
6
6
  type RakeDbAst = RakeDbAst.Table | RakeDbAst.ChangeTable | RakeDbAst.RenameType | RakeDbAst.Schema | RakeDbAst.RenameSchema | RakeDbAst.Extension | RakeDbAst.Enum | RakeDbAst.EnumValues | RakeDbAst.RenameEnumValues | RakeDbAst.ChangeEnumValues | RakeDbAst.Domain | RakeDbAst.Collation | RakeDbAst.Constraint | RakeDbAst.RenameTableItem | RakeDbAst.View;
7
7
  declare namespace RakeDbAst {
@@ -243,10 +243,7 @@ type TableOptions = {
243
243
  snakeCase?: boolean;
244
244
  language?: string;
245
245
  };
246
- type TextColumnCreator = (min?: number, max?: number) => TextColumn<ColumnSchemaConfig>;
247
- type MigrationColumnTypes<CT> = Omit<CT, 'text' | 'citext' | 'enum'> & {
248
- text: TextColumnCreator;
249
- citext: TextColumnCreator;
246
+ type MigrationColumnTypes<CT> = Omit<CT, 'enum'> & {
250
247
  enum: (name: string) => EnumColumn<ColumnSchemaConfig, unknown>;
251
248
  };
252
249
  type ColumnsShapeCallback<CT, Shape extends ColumnsShape = ColumnsShape> = (t: MigrationColumnTypes<CT> & {