drizzle-kit 0.26.2-31c8041 → 0.26.2-53e089b

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/index.d.mts CHANGED
@@ -126,10 +126,10 @@ type Config = {
126
126
  };
127
127
  entities?: {
128
128
  roles?: boolean | {
129
- provider?: string;
129
+ provider?: 'supabase' | 'neon' | string & {};
130
130
  exclude?: string[];
131
131
  include?: string[];
132
- }[];
132
+ };
133
133
  };
134
134
  } & ({
135
135
  dialect: Verify<Dialect, 'turso'>;
package/index.d.ts CHANGED
@@ -126,10 +126,10 @@ type Config = {
126
126
  };
127
127
  entities?: {
128
128
  roles?: boolean | {
129
- provider?: string;
129
+ provider?: 'supabase' | 'neon' | string & {};
130
130
  exclude?: string[];
131
131
  include?: string[];
132
- }[];
132
+ };
133
133
  };
134
134
  } & ({
135
135
  dialect: Verify<Dialect, 'turso'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.26.2-31c8041",
3
+ "version": "0.26.2-53e089b",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",
package/utils.js CHANGED
@@ -5253,7 +5253,12 @@ var policy = objectType({
5253
5253
  for: enumType(["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]).optional(),
5254
5254
  to: stringType().array().optional(),
5255
5255
  using: stringType().optional(),
5256
- withCheck: stringType().optional()
5256
+ withCheck: stringType().optional(),
5257
+ on: stringType().optional()
5258
+ }).strict();
5259
+ var policySquashed = objectType({
5260
+ name: stringType(),
5261
+ values: stringType()
5257
5262
  }).strict();
5258
5263
  var viewWithOption = objectType({
5259
5264
  checkOption: enumType(["local", "cascaded"]).optional(),
@@ -5433,6 +5438,7 @@ var pgSchemaInternal = objectType({
5433
5438
  views: recordType(stringType(), view2).default({}),
5434
5439
  sequences: recordType(stringType(), sequenceSchema).default({}),
5435
5440
  roles: recordType(stringType(), roleSchema).default({}),
5441
+ policies: recordType(stringType(), policy).default({}),
5436
5442
  _meta: objectType({
5437
5443
  schemas: recordType(stringType(), stringType()),
5438
5444
  tables: recordType(stringType(), stringType()),
@@ -5481,7 +5487,8 @@ var pgSchemaSquashed = objectType({
5481
5487
  schemas: recordType(stringType(), stringType()),
5482
5488
  views: recordType(stringType(), view2),
5483
5489
  sequences: recordType(stringType(), sequenceSquashed),
5484
- roles: recordType(stringType(), roleSchema).default({})
5490
+ roles: recordType(stringType(), roleSchema).default({}),
5491
+ policies: recordType(stringType(), policy).default({})
5485
5492
  }).strict();
5486
5493
  var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
5487
5494
  var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
@@ -5502,6 +5509,8 @@ var dryPg = pgSchema.parse({
5502
5509
  tables: {},
5503
5510
  enums: {},
5504
5511
  schemas: {},
5512
+ policies: {},
5513
+ roles: {},
5505
5514
  sequences: {},
5506
5515
  _meta: {
5507
5516
  schemas: {},
package/utils.mjs CHANGED
@@ -5231,7 +5231,12 @@ var policy = objectType({
5231
5231
  for: enumType(["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]).optional(),
5232
5232
  to: stringType().array().optional(),
5233
5233
  using: stringType().optional(),
5234
- withCheck: stringType().optional()
5234
+ withCheck: stringType().optional(),
5235
+ on: stringType().optional()
5236
+ }).strict();
5237
+ var policySquashed = objectType({
5238
+ name: stringType(),
5239
+ values: stringType()
5235
5240
  }).strict();
5236
5241
  var viewWithOption = objectType({
5237
5242
  checkOption: enumType(["local", "cascaded"]).optional(),
@@ -5411,6 +5416,7 @@ var pgSchemaInternal = objectType({
5411
5416
  views: recordType(stringType(), view2).default({}),
5412
5417
  sequences: recordType(stringType(), sequenceSchema).default({}),
5413
5418
  roles: recordType(stringType(), roleSchema).default({}),
5419
+ policies: recordType(stringType(), policy).default({}),
5414
5420
  _meta: objectType({
5415
5421
  schemas: recordType(stringType(), stringType()),
5416
5422
  tables: recordType(stringType(), stringType()),
@@ -5459,7 +5465,8 @@ var pgSchemaSquashed = objectType({
5459
5465
  schemas: recordType(stringType(), stringType()),
5460
5466
  views: recordType(stringType(), view2),
5461
5467
  sequences: recordType(stringType(), sequenceSquashed),
5462
- roles: recordType(stringType(), roleSchema).default({})
5468
+ roles: recordType(stringType(), roleSchema).default({}),
5469
+ policies: recordType(stringType(), policy).default({})
5463
5470
  }).strict();
5464
5471
  var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
5465
5472
  var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
@@ -5480,6 +5487,8 @@ var dryPg = pgSchema.parse({
5480
5487
  tables: {},
5481
5488
  enums: {},
5482
5489
  schemas: {},
5490
+ policies: {},
5491
+ roles: {},
5483
5492
  sequences: {},
5484
5493
  _meta: {
5485
5494
  schemas: {},