drizzle-kit 0.27.1-4d56096 → 0.27.1-82368

Sign up to get free protection for your applications and to get access to all the features.
package/api.d.mts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
2
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
3
  import { PgDatabase } from 'drizzle-orm/pg-core';
4
- import { C as CasingType, a as Config } from './index-BfiZoTqG.mjs';
4
+ import { C as CasingType } from './common-DYjgLS6u.mjs';
5
5
  import * as zod from 'zod';
6
6
  import { TypeOf } from 'zod';
7
- import 'tls';
8
7
 
9
8
  declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
10
9
  version: zod.ZodLiteral<"5">;
@@ -2274,7 +2273,7 @@ type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
2274
2273
  type DrizzleMySQLSnapshotJSON = MySqlSchema;
2275
2274
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2276
2275
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2277
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2276
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
2278
2277
  hasDataLoss: boolean;
2279
2278
  warnings: string[];
2280
2279
  statementsToExecute: string[];
package/api.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
2
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
3
  import { PgDatabase } from 'drizzle-orm/pg-core';
4
- import { C as CasingType, a as Config } from './index-BfiZoTqG.js';
4
+ import { C as CasingType } from './common-DYjgLS6u.js';
5
5
  import * as zod from 'zod';
6
6
  import { TypeOf } from 'zod';
7
- import 'tls';
8
7
 
9
8
  declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
10
9
  version: zod.ZodLiteral<"5">;
@@ -2274,7 +2273,7 @@ type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
2274
2273
  type DrizzleMySQLSnapshotJSON = MySqlSchema;
2275
2274
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2276
2275
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2277
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2276
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
2278
2277
  hasDataLoss: boolean;
2279
2278
  warnings: string[];
2280
2279
  statementsToExecute: string[];
package/api.js CHANGED
@@ -17217,7 +17217,8 @@ var init_snapshotsDiffer = __esm({
17217
17217
  if (policiesInPreviousState.length > 0 && policiesInCurrentState.length === 0 && !table4.isRLSEnabled) {
17218
17218
  jsonDisableRLSStatements.push({ type: "disable_rls", tableName: table4.name, schema: table4.schema });
17219
17219
  }
17220
- if (table4.isRLSEnabled !== tableInPreviousState.isRLSEnabled) {
17220
+ const wasRlsEnabled = tableInPreviousState ? tableInPreviousState.isRLSEnabled : false;
17221
+ if (table4.isRLSEnabled !== wasRlsEnabled) {
17221
17222
  if (table4.isRLSEnabled) {
17222
17223
  jsonEnableRLSStatements.push({ type: "enable_rls", tableName: table4.name, schema: table4.schema });
17223
17224
  } else if (!table4.isRLSEnabled && policiesInCurrentState.length === 0) {
@@ -30212,7 +30213,7 @@ var init_blob = __esm({
30212
30213
  return "blob";
30213
30214
  }
30214
30215
  mapFromDriverValue(value) {
30215
- return BigInt(Buffer.isBuffer(value) ? value.toString() : String.fromCodePoint(...value));
30216
+ return BigInt(value.toString());
30216
30217
  }
30217
30218
  mapToDriverValue(value) {
30218
30219
  return Buffer.from(value.toString());
@@ -30237,7 +30238,7 @@ var init_blob = __esm({
30237
30238
  return "blob";
30238
30239
  }
30239
30240
  mapFromDriverValue(value) {
30240
- return JSON.parse(Buffer.isBuffer(value) ? value.toString() : String.fromCodePoint(...value));
30241
+ return JSON.parse(value.toString());
30241
30242
  }
30242
30243
  mapToDriverValue(value) {
30243
30244
  return Buffer.from(JSON.stringify(value));
@@ -34057,25 +34058,6 @@ WHERE
34057
34058
  }
34058
34059
  });
34059
34060
 
34060
- // src/extensions/getTablesFilterByExtensions.ts
34061
- var getTablesFilterByExtensions;
34062
- var init_getTablesFilterByExtensions = __esm({
34063
- "src/extensions/getTablesFilterByExtensions.ts"() {
34064
- "use strict";
34065
- getTablesFilterByExtensions = ({
34066
- extensionsFilters,
34067
- dialect: dialect4
34068
- }) => {
34069
- if (extensionsFilters) {
34070
- if (extensionsFilters.includes("postgis") && dialect4 === "postgresql") {
34071
- return ["!geography_columns", "!geometry_columns", "!spatial_ref_sys"];
34072
- }
34073
- }
34074
- return [];
34075
- };
34076
- }
34077
- });
34078
-
34079
34061
  // ../drizzle-orm/dist/mysql-core/alias.js
34080
34062
  var init_alias4 = __esm({
34081
34063
  "../drizzle-orm/dist/mysql-core/alias.js"() {
@@ -34698,7 +34680,7 @@ var init_datetime = __esm({
34698
34680
  // ../drizzle-orm/dist/mysql-core/columns/decimal.js
34699
34681
  function decimal(a, b = {}) {
34700
34682
  const { name: name2, config } = getColumnNameAndConfig(a, b);
34701
- return new MySqlDecimalBuilder(name2, config);
34683
+ return new MySqlDecimalBuilder(name2, config.precision, config.scale);
34702
34684
  }
34703
34685
  var _a259, _b182, MySqlDecimalBuilder, _a260, _b183, MySqlDecimal;
34704
34686
  var init_decimal = __esm({
@@ -34708,11 +34690,10 @@ var init_decimal = __esm({
34708
34690
  init_utils2();
34709
34691
  init_common4();
34710
34692
  MySqlDecimalBuilder = class extends (_b182 = MySqlColumnBuilderWithAutoIncrement, _a259 = entityKind, _b182) {
34711
- constructor(name2, config) {
34693
+ constructor(name2, precision, scale) {
34712
34694
  super(name2, "string", "MySqlDecimal");
34713
- this.config.precision = config?.precision;
34714
- this.config.scale = config?.scale;
34715
- this.config.unsigned = config?.unsigned;
34695
+ this.config.precision = precision;
34696
+ this.config.scale = scale;
34716
34697
  }
34717
34698
  /** @internal */
34718
34699
  build(table4) {
@@ -34728,19 +34709,15 @@ var init_decimal = __esm({
34728
34709
  super(...arguments);
34729
34710
  __publicField(this, "precision", this.config.precision);
34730
34711
  __publicField(this, "scale", this.config.scale);
34731
- __publicField(this, "unsigned", this.config.unsigned);
34732
34712
  }
34733
34713
  getSQLType() {
34734
- let type = "";
34735
34714
  if (this.precision !== void 0 && this.scale !== void 0) {
34736
- type += `decimal(${this.precision},${this.scale})`;
34715
+ return `decimal(${this.precision},${this.scale})`;
34737
34716
  } else if (this.precision === void 0) {
34738
- type += "decimal";
34717
+ return "decimal";
34739
34718
  } else {
34740
- type += `decimal(${this.precision})`;
34719
+ return `decimal(${this.precision})`;
34741
34720
  }
34742
- type = type === "decimal(10,0)" || type === "decimal(10)" ? "decimal" : type;
34743
- return this.unsigned ? `${type} unsigned` : type;
34744
34721
  }
34745
34722
  };
34746
34723
  __publicField(MySqlDecimal, _a260, "MySqlDecimal");
@@ -34764,7 +34741,6 @@ var init_double = __esm({
34764
34741
  super(name2, "number", "MySqlDouble");
34765
34742
  this.config.precision = config?.precision;
34766
34743
  this.config.scale = config?.scale;
34767
- this.config.unsigned = config?.unsigned;
34768
34744
  }
34769
34745
  /** @internal */
34770
34746
  build(table4) {
@@ -34777,18 +34753,15 @@ var init_double = __esm({
34777
34753
  super(...arguments);
34778
34754
  __publicField(this, "precision", this.config.precision);
34779
34755
  __publicField(this, "scale", this.config.scale);
34780
- __publicField(this, "unsigned", this.config.unsigned);
34781
34756
  }
34782
34757
  getSQLType() {
34783
- let type = "";
34784
34758
  if (this.precision !== void 0 && this.scale !== void 0) {
34785
- type += `double(${this.precision},${this.scale})`;
34759
+ return `double(${this.precision},${this.scale})`;
34786
34760
  } else if (this.precision === void 0) {
34787
- type += "double";
34761
+ return "double";
34788
34762
  } else {
34789
- type += `double(${this.precision})`;
34763
+ return `double(${this.precision})`;
34790
34764
  }
34791
- return this.unsigned ? `${type} unsigned` : type;
34792
34765
  }
34793
34766
  };
34794
34767
  __publicField(MySqlDouble, _a262, "MySqlDouble");
@@ -34838,23 +34811,18 @@ var init_enum2 = __esm({
34838
34811
  });
34839
34812
 
34840
34813
  // ../drizzle-orm/dist/mysql-core/columns/float.js
34841
- function float(a, b) {
34842
- const { name: name2, config } = getColumnNameAndConfig(a, b);
34843
- return new MySqlFloatBuilder(name2, config);
34814
+ function float(name2) {
34815
+ return new MySqlFloatBuilder(name2 ?? "");
34844
34816
  }
34845
34817
  var _a265, _b188, MySqlFloatBuilder, _a266, _b189, MySqlFloat;
34846
34818
  var init_float = __esm({
34847
34819
  "../drizzle-orm/dist/mysql-core/columns/float.js"() {
34848
34820
  "use strict";
34849
34821
  init_entity();
34850
- init_utils2();
34851
34822
  init_common4();
34852
34823
  MySqlFloatBuilder = class extends (_b188 = MySqlColumnBuilderWithAutoIncrement, _a265 = entityKind, _b188) {
34853
- constructor(name2, config) {
34824
+ constructor(name2) {
34854
34825
  super(name2, "number", "MySqlFloat");
34855
- this.config.precision = config?.precision;
34856
- this.config.scale = config?.scale;
34857
- this.config.unsigned = config?.unsigned;
34858
34826
  }
34859
34827
  /** @internal */
34860
34828
  build(table4) {
@@ -34863,22 +34831,8 @@ var init_float = __esm({
34863
34831
  };
34864
34832
  __publicField(MySqlFloatBuilder, _a265, "MySqlFloatBuilder");
34865
34833
  MySqlFloat = class extends (_b189 = MySqlColumnWithAutoIncrement, _a266 = entityKind, _b189) {
34866
- constructor() {
34867
- super(...arguments);
34868
- __publicField(this, "precision", this.config.precision);
34869
- __publicField(this, "scale", this.config.scale);
34870
- __publicField(this, "unsigned", this.config.unsigned);
34871
- }
34872
34834
  getSQLType() {
34873
- let type = "";
34874
- if (this.precision !== void 0 && this.scale !== void 0) {
34875
- type += `float(${this.precision},${this.scale})`;
34876
- } else if (this.precision === void 0) {
34877
- type += "float";
34878
- } else {
34879
- type += `float(${this.precision})`;
34880
- }
34881
- return this.unsigned ? `${type} unsigned` : type;
34835
+ return "float";
34882
34836
  }
34883
34837
  };
34884
34838
  __publicField(MySqlFloat, _a266, "MySqlFloat");
@@ -38870,8 +38824,8 @@ ${withStyle.errorWarning(
38870
38824
  changedType = columnType.replace("bigint unsigned", "serial");
38871
38825
  }
38872
38826
  }
38873
- if (columnType.includes("decimal(10,0)")) {
38874
- changedType = columnType.replace("decimal(10,0)", "decimal");
38827
+ if (columnType.startsWith("tinyint")) {
38828
+ changedType = "tinyint";
38875
38829
  }
38876
38830
  let onUpdate = void 0;
38877
38831
  if (columnType.startsWith("timestamp") && typeof columnExtra !== "undefined" && columnExtra.includes("on update CURRENT_TIMESTAMP")) {
@@ -39393,7 +39347,6 @@ var init_utils9 = __esm({
39393
39347
  "use strict";
39394
39348
  import_hanji7 = __toESM(require_hanji());
39395
39349
  init_lib();
39396
- init_getTablesFilterByExtensions();
39397
39350
  init_global();
39398
39351
  init_schemaValidator();
39399
39352
  init_serializer();
@@ -40350,7 +40303,6 @@ var sqlitePushIntrospect = async (db, filters) => {
40350
40303
 
40351
40304
  // src/api.ts
40352
40305
  init_sqlitePushUtils();
40353
- init_getTablesFilterByExtensions();
40354
40306
  init_global();
40355
40307
  init_migrationPreparator();
40356
40308
  init_mysqlSchema();
@@ -40404,12 +40356,9 @@ var generateMigration = async (prev, cur) => {
40404
40356
  );
40405
40357
  return sqlStatements;
40406
40358
  };
40407
- var pushSchema = async (imports, drizzleInstance, schemaFilters, tablesFilter, extensionsFilters) => {
40359
+ var pushSchema = async (imports, drizzleInstance, schemaFilters) => {
40408
40360
  const { applyPgSnapshotsDiff: applyPgSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
40409
40361
  const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
40410
- const filters = (tablesFilter ?? []).concat(
40411
- getTablesFilterByExtensions({ extensionsFilters, dialect: "postgresql" })
40412
- );
40413
40362
  const db = {
40414
40363
  query: async (query, params) => {
40415
40364
  const res = await drizzleInstance.execute(sql2.raw(query));
@@ -40419,7 +40368,7 @@ var pushSchema = async (imports, drizzleInstance, schemaFilters, tablesFilter, e
40419
40368
  const cur = generateDrizzleJson(imports);
40420
40369
  const { schema: prev } = await pgPushIntrospect(
40421
40370
  db,
40422
- filters,
40371
+ [],
40423
40372
  schemaFilters ?? ["public"],
40424
40373
  void 0
40425
40374
  );
package/api.mjs CHANGED
@@ -17222,7 +17222,8 @@ var init_snapshotsDiffer = __esm({
17222
17222
  if (policiesInPreviousState.length > 0 && policiesInCurrentState.length === 0 && !table4.isRLSEnabled) {
17223
17223
  jsonDisableRLSStatements.push({ type: "disable_rls", tableName: table4.name, schema: table4.schema });
17224
17224
  }
17225
- if (table4.isRLSEnabled !== tableInPreviousState.isRLSEnabled) {
17225
+ const wasRlsEnabled = tableInPreviousState ? tableInPreviousState.isRLSEnabled : false;
17226
+ if (table4.isRLSEnabled !== wasRlsEnabled) {
17226
17227
  if (table4.isRLSEnabled) {
17227
17228
  jsonEnableRLSStatements.push({ type: "enable_rls", tableName: table4.name, schema: table4.schema });
17228
17229
  } else if (!table4.isRLSEnabled && policiesInCurrentState.length === 0) {
@@ -30217,7 +30218,7 @@ var init_blob = __esm({
30217
30218
  return "blob";
30218
30219
  }
30219
30220
  mapFromDriverValue(value) {
30220
- return BigInt(Buffer.isBuffer(value) ? value.toString() : String.fromCodePoint(...value));
30221
+ return BigInt(value.toString());
30221
30222
  }
30222
30223
  mapToDriverValue(value) {
30223
30224
  return Buffer.from(value.toString());
@@ -30242,7 +30243,7 @@ var init_blob = __esm({
30242
30243
  return "blob";
30243
30244
  }
30244
30245
  mapFromDriverValue(value) {
30245
- return JSON.parse(Buffer.isBuffer(value) ? value.toString() : String.fromCodePoint(...value));
30246
+ return JSON.parse(value.toString());
30246
30247
  }
30247
30248
  mapToDriverValue(value) {
30248
30249
  return Buffer.from(JSON.stringify(value));
@@ -34062,25 +34063,6 @@ WHERE
34062
34063
  }
34063
34064
  });
34064
34065
 
34065
- // src/extensions/getTablesFilterByExtensions.ts
34066
- var getTablesFilterByExtensions;
34067
- var init_getTablesFilterByExtensions = __esm({
34068
- "src/extensions/getTablesFilterByExtensions.ts"() {
34069
- "use strict";
34070
- getTablesFilterByExtensions = ({
34071
- extensionsFilters,
34072
- dialect: dialect4
34073
- }) => {
34074
- if (extensionsFilters) {
34075
- if (extensionsFilters.includes("postgis") && dialect4 === "postgresql") {
34076
- return ["!geography_columns", "!geometry_columns", "!spatial_ref_sys"];
34077
- }
34078
- }
34079
- return [];
34080
- };
34081
- }
34082
- });
34083
-
34084
34066
  // ../drizzle-orm/dist/mysql-core/alias.js
34085
34067
  var init_alias4 = __esm({
34086
34068
  "../drizzle-orm/dist/mysql-core/alias.js"() {
@@ -34703,7 +34685,7 @@ var init_datetime = __esm({
34703
34685
  // ../drizzle-orm/dist/mysql-core/columns/decimal.js
34704
34686
  function decimal(a, b = {}) {
34705
34687
  const { name: name2, config } = getColumnNameAndConfig(a, b);
34706
- return new MySqlDecimalBuilder(name2, config);
34688
+ return new MySqlDecimalBuilder(name2, config.precision, config.scale);
34707
34689
  }
34708
34690
  var _a259, _b182, MySqlDecimalBuilder, _a260, _b183, MySqlDecimal;
34709
34691
  var init_decimal = __esm({
@@ -34713,11 +34695,10 @@ var init_decimal = __esm({
34713
34695
  init_utils2();
34714
34696
  init_common4();
34715
34697
  MySqlDecimalBuilder = class extends (_b182 = MySqlColumnBuilderWithAutoIncrement, _a259 = entityKind, _b182) {
34716
- constructor(name2, config) {
34698
+ constructor(name2, precision, scale) {
34717
34699
  super(name2, "string", "MySqlDecimal");
34718
- this.config.precision = config?.precision;
34719
- this.config.scale = config?.scale;
34720
- this.config.unsigned = config?.unsigned;
34700
+ this.config.precision = precision;
34701
+ this.config.scale = scale;
34721
34702
  }
34722
34703
  /** @internal */
34723
34704
  build(table4) {
@@ -34733,19 +34714,15 @@ var init_decimal = __esm({
34733
34714
  super(...arguments);
34734
34715
  __publicField(this, "precision", this.config.precision);
34735
34716
  __publicField(this, "scale", this.config.scale);
34736
- __publicField(this, "unsigned", this.config.unsigned);
34737
34717
  }
34738
34718
  getSQLType() {
34739
- let type = "";
34740
34719
  if (this.precision !== void 0 && this.scale !== void 0) {
34741
- type += `decimal(${this.precision},${this.scale})`;
34720
+ return `decimal(${this.precision},${this.scale})`;
34742
34721
  } else if (this.precision === void 0) {
34743
- type += "decimal";
34722
+ return "decimal";
34744
34723
  } else {
34745
- type += `decimal(${this.precision})`;
34724
+ return `decimal(${this.precision})`;
34746
34725
  }
34747
- type = type === "decimal(10,0)" || type === "decimal(10)" ? "decimal" : type;
34748
- return this.unsigned ? `${type} unsigned` : type;
34749
34726
  }
34750
34727
  };
34751
34728
  __publicField(MySqlDecimal, _a260, "MySqlDecimal");
@@ -34769,7 +34746,6 @@ var init_double = __esm({
34769
34746
  super(name2, "number", "MySqlDouble");
34770
34747
  this.config.precision = config?.precision;
34771
34748
  this.config.scale = config?.scale;
34772
- this.config.unsigned = config?.unsigned;
34773
34749
  }
34774
34750
  /** @internal */
34775
34751
  build(table4) {
@@ -34782,18 +34758,15 @@ var init_double = __esm({
34782
34758
  super(...arguments);
34783
34759
  __publicField(this, "precision", this.config.precision);
34784
34760
  __publicField(this, "scale", this.config.scale);
34785
- __publicField(this, "unsigned", this.config.unsigned);
34786
34761
  }
34787
34762
  getSQLType() {
34788
- let type = "";
34789
34763
  if (this.precision !== void 0 && this.scale !== void 0) {
34790
- type += `double(${this.precision},${this.scale})`;
34764
+ return `double(${this.precision},${this.scale})`;
34791
34765
  } else if (this.precision === void 0) {
34792
- type += "double";
34766
+ return "double";
34793
34767
  } else {
34794
- type += `double(${this.precision})`;
34768
+ return `double(${this.precision})`;
34795
34769
  }
34796
- return this.unsigned ? `${type} unsigned` : type;
34797
34770
  }
34798
34771
  };
34799
34772
  __publicField(MySqlDouble, _a262, "MySqlDouble");
@@ -34843,23 +34816,18 @@ var init_enum2 = __esm({
34843
34816
  });
34844
34817
 
34845
34818
  // ../drizzle-orm/dist/mysql-core/columns/float.js
34846
- function float(a, b) {
34847
- const { name: name2, config } = getColumnNameAndConfig(a, b);
34848
- return new MySqlFloatBuilder(name2, config);
34819
+ function float(name2) {
34820
+ return new MySqlFloatBuilder(name2 ?? "");
34849
34821
  }
34850
34822
  var _a265, _b188, MySqlFloatBuilder, _a266, _b189, MySqlFloat;
34851
34823
  var init_float = __esm({
34852
34824
  "../drizzle-orm/dist/mysql-core/columns/float.js"() {
34853
34825
  "use strict";
34854
34826
  init_entity();
34855
- init_utils2();
34856
34827
  init_common4();
34857
34828
  MySqlFloatBuilder = class extends (_b188 = MySqlColumnBuilderWithAutoIncrement, _a265 = entityKind, _b188) {
34858
- constructor(name2, config) {
34829
+ constructor(name2) {
34859
34830
  super(name2, "number", "MySqlFloat");
34860
- this.config.precision = config?.precision;
34861
- this.config.scale = config?.scale;
34862
- this.config.unsigned = config?.unsigned;
34863
34831
  }
34864
34832
  /** @internal */
34865
34833
  build(table4) {
@@ -34868,22 +34836,8 @@ var init_float = __esm({
34868
34836
  };
34869
34837
  __publicField(MySqlFloatBuilder, _a265, "MySqlFloatBuilder");
34870
34838
  MySqlFloat = class extends (_b189 = MySqlColumnWithAutoIncrement, _a266 = entityKind, _b189) {
34871
- constructor() {
34872
- super(...arguments);
34873
- __publicField(this, "precision", this.config.precision);
34874
- __publicField(this, "scale", this.config.scale);
34875
- __publicField(this, "unsigned", this.config.unsigned);
34876
- }
34877
34839
  getSQLType() {
34878
- let type = "";
34879
- if (this.precision !== void 0 && this.scale !== void 0) {
34880
- type += `float(${this.precision},${this.scale})`;
34881
- } else if (this.precision === void 0) {
34882
- type += "float";
34883
- } else {
34884
- type += `float(${this.precision})`;
34885
- }
34886
- return this.unsigned ? `${type} unsigned` : type;
34840
+ return "float";
34887
34841
  }
34888
34842
  };
34889
34843
  __publicField(MySqlFloat, _a266, "MySqlFloat");
@@ -38875,8 +38829,8 @@ ${withStyle.errorWarning(
38875
38829
  changedType = columnType.replace("bigint unsigned", "serial");
38876
38830
  }
38877
38831
  }
38878
- if (columnType.includes("decimal(10,0)")) {
38879
- changedType = columnType.replace("decimal(10,0)", "decimal");
38832
+ if (columnType.startsWith("tinyint")) {
38833
+ changedType = "tinyint";
38880
38834
  }
38881
38835
  let onUpdate = void 0;
38882
38836
  if (columnType.startsWith("timestamp") && typeof columnExtra !== "undefined" && columnExtra.includes("on update CURRENT_TIMESTAMP")) {
@@ -39398,7 +39352,6 @@ var init_utils9 = __esm({
39398
39352
  "use strict";
39399
39353
  import_hanji7 = __toESM(require_hanji());
39400
39354
  init_lib();
39401
- init_getTablesFilterByExtensions();
39402
39355
  init_global();
39403
39356
  init_schemaValidator();
39404
39357
  init_serializer();
@@ -40341,7 +40294,6 @@ var sqlitePushIntrospect = async (db, filters) => {
40341
40294
 
40342
40295
  // src/api.ts
40343
40296
  init_sqlitePushUtils();
40344
- init_getTablesFilterByExtensions();
40345
40297
  init_global();
40346
40298
  init_migrationPreparator();
40347
40299
  init_mysqlSchema();
@@ -40395,12 +40347,9 @@ var generateMigration = async (prev, cur) => {
40395
40347
  );
40396
40348
  return sqlStatements;
40397
40349
  };
40398
- var pushSchema = async (imports, drizzleInstance, schemaFilters, tablesFilter, extensionsFilters) => {
40350
+ var pushSchema = async (imports, drizzleInstance, schemaFilters) => {
40399
40351
  const { applyPgSnapshotsDiff: applyPgSnapshotsDiff2 } = await Promise.resolve().then(() => (init_snapshotsDiffer(), snapshotsDiffer_exports));
40400
40352
  const { sql: sql2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
40401
- const filters = (tablesFilter ?? []).concat(
40402
- getTablesFilterByExtensions({ extensionsFilters, dialect: "postgresql" })
40403
- );
40404
40353
  const db = {
40405
40354
  query: async (query, params) => {
40406
40355
  const res = await drizzleInstance.execute(sql2.raw(query));
@@ -40410,7 +40359,7 @@ var pushSchema = async (imports, drizzleInstance, schemaFilters, tablesFilter, e
40410
40359
  const cur = generateDrizzleJson(imports);
40411
40360
  const { schema: prev } = await pgPushIntrospect(
40412
40361
  db,
40413
- filters,
40362
+ [],
40414
40363
  schemaFilters ?? ["public"],
40415
40364
  void 0
40416
40365
  );