drizzle-kit 0.30.6 → 0.31.0-62ea5c4
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/api.d.mts +48 -48
- package/api.d.ts +48 -48
- package/api.js +1924 -1413
- package/api.mjs +1927 -1416
- package/bin.cjs +18883 -18385
- package/index.js +3 -3
- package/package.json +6 -6
- package/utils.js +193 -75
- package/utils.mjs +194 -77
package/api.d.mts
CHANGED
@@ -2652,28 +2652,25 @@ declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleI
|
|
2652
2652
|
apply: () => Promise<void>;
|
2653
2653
|
}>;
|
2654
2654
|
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
2655
|
-
version: "7";
|
2656
|
-
dialect: "postgresql";
|
2657
2655
|
tables: Record<string, {
|
2658
2656
|
name: string;
|
2659
|
-
schema: string;
|
2660
2657
|
columns: Record<string, {
|
2661
|
-
type: string;
|
2662
2658
|
name: string;
|
2659
|
+
type: string;
|
2663
2660
|
primaryKey: boolean;
|
2664
2661
|
notNull: boolean;
|
2665
|
-
typeSchema?: string | undefined;
|
2666
2662
|
default?: any;
|
2667
2663
|
isUnique?: any;
|
2668
|
-
uniqueName?: string | undefined;
|
2669
|
-
nullsNotDistinct?: boolean | undefined;
|
2670
2664
|
generated?: {
|
2671
2665
|
type: "stored";
|
2672
2666
|
as: string;
|
2673
2667
|
} | undefined;
|
2668
|
+
typeSchema?: string | undefined;
|
2669
|
+
uniqueName?: string | undefined;
|
2670
|
+
nullsNotDistinct?: boolean | undefined;
|
2674
2671
|
identity?: {
|
2675
|
-
type: "always" | "byDefault";
|
2676
2672
|
name: string;
|
2673
|
+
type: "always" | "byDefault";
|
2677
2674
|
schema: string;
|
2678
2675
|
increment?: string | undefined;
|
2679
2676
|
minValue?: string | undefined;
|
@@ -2686,8 +2683,8 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2686
2683
|
indexes: Record<string, {
|
2687
2684
|
name: string;
|
2688
2685
|
columns: {
|
2689
|
-
expression: string;
|
2690
2686
|
isExpression: boolean;
|
2687
|
+
expression: string;
|
2691
2688
|
asc: boolean;
|
2692
2689
|
nulls?: string | undefined;
|
2693
2690
|
opclass?: string | undefined;
|
@@ -2704,10 +2701,11 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2704
2701
|
columnsFrom: string[];
|
2705
2702
|
tableTo: string;
|
2706
2703
|
columnsTo: string[];
|
2707
|
-
schemaTo?: string | undefined;
|
2708
2704
|
onUpdate?: string | undefined;
|
2709
2705
|
onDelete?: string | undefined;
|
2706
|
+
schemaTo?: string | undefined;
|
2710
2707
|
}>;
|
2708
|
+
schema: string;
|
2711
2709
|
compositePrimaryKeys: Record<string, {
|
2712
2710
|
name: string;
|
2713
2711
|
columns: string[];
|
@@ -2717,58 +2715,51 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2717
2715
|
columns: string[];
|
2718
2716
|
nullsNotDistinct: boolean;
|
2719
2717
|
}>;
|
2718
|
+
checkConstraints: Record<string, {
|
2719
|
+
name: string;
|
2720
|
+
value: string;
|
2721
|
+
}>;
|
2720
2722
|
policies: Record<string, {
|
2721
2723
|
name: string;
|
2722
|
-
|
2724
|
+
using?: string | undefined;
|
2723
2725
|
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
2726
|
+
schema?: string | undefined;
|
2724
2727
|
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
2725
2728
|
to?: string[] | undefined;
|
2726
|
-
using?: string | undefined;
|
2727
2729
|
withCheck?: string | undefined;
|
2728
2730
|
on?: string | undefined;
|
2729
2731
|
}>;
|
2730
|
-
checkConstraints: Record<string, {
|
2731
|
-
value: string;
|
2732
|
-
name: string;
|
2733
|
-
}>;
|
2734
2732
|
isRLSEnabled: boolean;
|
2735
2733
|
}>;
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
2741
|
-
to?: string[] | undefined;
|
2742
|
-
using?: string | undefined;
|
2743
|
-
withCheck?: string | undefined;
|
2744
|
-
on?: string | undefined;
|
2745
|
-
}>;
|
2746
|
-
enums: Record<string, {
|
2747
|
-
values: string[];
|
2748
|
-
name: string;
|
2749
|
-
schema: string;
|
2750
|
-
}>;
|
2734
|
+
id: string;
|
2735
|
+
prevId: string;
|
2736
|
+
version: "7";
|
2737
|
+
dialect: "postgresql";
|
2751
2738
|
schemas: Record<string, string>;
|
2739
|
+
_meta: {
|
2740
|
+
columns: Record<string, string>;
|
2741
|
+
tables: Record<string, string>;
|
2742
|
+
schemas: Record<string, string>;
|
2743
|
+
};
|
2752
2744
|
views: Record<string, {
|
2753
2745
|
name: string;
|
2754
|
-
schema: string;
|
2755
2746
|
columns: Record<string, {
|
2756
|
-
type: string;
|
2757
2747
|
name: string;
|
2748
|
+
type: string;
|
2758
2749
|
primaryKey: boolean;
|
2759
2750
|
notNull: boolean;
|
2760
|
-
typeSchema?: string | undefined;
|
2761
2751
|
default?: any;
|
2762
2752
|
isUnique?: any;
|
2763
|
-
uniqueName?: string | undefined;
|
2764
|
-
nullsNotDistinct?: boolean | undefined;
|
2765
2753
|
generated?: {
|
2766
2754
|
type: "stored";
|
2767
2755
|
as: string;
|
2768
2756
|
} | undefined;
|
2757
|
+
typeSchema?: string | undefined;
|
2758
|
+
uniqueName?: string | undefined;
|
2759
|
+
nullsNotDistinct?: boolean | undefined;
|
2769
2760
|
identity?: {
|
2770
|
-
type: "always" | "byDefault";
|
2771
2761
|
name: string;
|
2762
|
+
type: "always" | "byDefault";
|
2772
2763
|
schema: string;
|
2773
2764
|
increment?: string | undefined;
|
2774
2765
|
minValue?: string | undefined;
|
@@ -2778,8 +2769,11 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2778
2769
|
cycle?: boolean | undefined;
|
2779
2770
|
} | undefined;
|
2780
2771
|
}>;
|
2781
|
-
|
2772
|
+
schema: string;
|
2782
2773
|
isExisting: boolean;
|
2774
|
+
materialized: boolean;
|
2775
|
+
using?: string | undefined;
|
2776
|
+
definition?: string | undefined;
|
2783
2777
|
with?: {
|
2784
2778
|
checkOption?: "local" | "cascaded" | undefined;
|
2785
2779
|
securityBarrier?: boolean | undefined;
|
@@ -2803,11 +2797,24 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2803
2797
|
logAutovacuumMinDuration?: number | undefined;
|
2804
2798
|
userCatalogTable?: boolean | undefined;
|
2805
2799
|
} | undefined;
|
2806
|
-
using?: string | undefined;
|
2807
|
-
definition?: string | undefined;
|
2808
2800
|
withNoData?: boolean | undefined;
|
2809
2801
|
tablespace?: string | undefined;
|
2810
2802
|
}>;
|
2803
|
+
enums: Record<string, {
|
2804
|
+
name: string;
|
2805
|
+
values: string[];
|
2806
|
+
schema: string;
|
2807
|
+
}>;
|
2808
|
+
policies: Record<string, {
|
2809
|
+
name: string;
|
2810
|
+
using?: string | undefined;
|
2811
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
2812
|
+
schema?: string | undefined;
|
2813
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
2814
|
+
to?: string[] | undefined;
|
2815
|
+
withCheck?: string | undefined;
|
2816
|
+
on?: string | undefined;
|
2817
|
+
}>;
|
2811
2818
|
sequences: Record<string, {
|
2812
2819
|
name: string;
|
2813
2820
|
schema: string;
|
@@ -2824,20 +2831,13 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2824
2831
|
createRole?: boolean | undefined;
|
2825
2832
|
inherit?: boolean | undefined;
|
2826
2833
|
}>;
|
2827
|
-
_meta: {
|
2828
|
-
tables: Record<string, string>;
|
2829
|
-
columns: Record<string, string>;
|
2830
|
-
schemas: Record<string, string>;
|
2831
|
-
};
|
2832
|
-
id: string;
|
2833
|
-
prevId: string;
|
2834
2834
|
internal?: {
|
2835
2835
|
tables: Record<string, {
|
2836
2836
|
columns: Record<string, {
|
2837
|
+
isDefaultAnExpression?: boolean | undefined;
|
2837
2838
|
isArray?: boolean | undefined;
|
2838
2839
|
dimensions?: number | undefined;
|
2839
2840
|
rawType?: string | undefined;
|
2840
|
-
isDefaultAnExpression?: boolean | undefined;
|
2841
2841
|
} | undefined>;
|
2842
2842
|
} | undefined>;
|
2843
2843
|
} | undefined;
|
package/api.d.ts
CHANGED
@@ -2652,28 +2652,25 @@ declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleI
|
|
2652
2652
|
apply: () => Promise<void>;
|
2653
2653
|
}>;
|
2654
2654
|
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
2655
|
-
version: "7";
|
2656
|
-
dialect: "postgresql";
|
2657
2655
|
tables: Record<string, {
|
2658
2656
|
name: string;
|
2659
|
-
schema: string;
|
2660
2657
|
columns: Record<string, {
|
2661
|
-
type: string;
|
2662
2658
|
name: string;
|
2659
|
+
type: string;
|
2663
2660
|
primaryKey: boolean;
|
2664
2661
|
notNull: boolean;
|
2665
|
-
typeSchema?: string | undefined;
|
2666
2662
|
default?: any;
|
2667
2663
|
isUnique?: any;
|
2668
|
-
uniqueName?: string | undefined;
|
2669
|
-
nullsNotDistinct?: boolean | undefined;
|
2670
2664
|
generated?: {
|
2671
2665
|
type: "stored";
|
2672
2666
|
as: string;
|
2673
2667
|
} | undefined;
|
2668
|
+
typeSchema?: string | undefined;
|
2669
|
+
uniqueName?: string | undefined;
|
2670
|
+
nullsNotDistinct?: boolean | undefined;
|
2674
2671
|
identity?: {
|
2675
|
-
type: "always" | "byDefault";
|
2676
2672
|
name: string;
|
2673
|
+
type: "always" | "byDefault";
|
2677
2674
|
schema: string;
|
2678
2675
|
increment?: string | undefined;
|
2679
2676
|
minValue?: string | undefined;
|
@@ -2686,8 +2683,8 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2686
2683
|
indexes: Record<string, {
|
2687
2684
|
name: string;
|
2688
2685
|
columns: {
|
2689
|
-
expression: string;
|
2690
2686
|
isExpression: boolean;
|
2687
|
+
expression: string;
|
2691
2688
|
asc: boolean;
|
2692
2689
|
nulls?: string | undefined;
|
2693
2690
|
opclass?: string | undefined;
|
@@ -2704,10 +2701,11 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2704
2701
|
columnsFrom: string[];
|
2705
2702
|
tableTo: string;
|
2706
2703
|
columnsTo: string[];
|
2707
|
-
schemaTo?: string | undefined;
|
2708
2704
|
onUpdate?: string | undefined;
|
2709
2705
|
onDelete?: string | undefined;
|
2706
|
+
schemaTo?: string | undefined;
|
2710
2707
|
}>;
|
2708
|
+
schema: string;
|
2711
2709
|
compositePrimaryKeys: Record<string, {
|
2712
2710
|
name: string;
|
2713
2711
|
columns: string[];
|
@@ -2717,58 +2715,51 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2717
2715
|
columns: string[];
|
2718
2716
|
nullsNotDistinct: boolean;
|
2719
2717
|
}>;
|
2718
|
+
checkConstraints: Record<string, {
|
2719
|
+
name: string;
|
2720
|
+
value: string;
|
2721
|
+
}>;
|
2720
2722
|
policies: Record<string, {
|
2721
2723
|
name: string;
|
2722
|
-
|
2724
|
+
using?: string | undefined;
|
2723
2725
|
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
2726
|
+
schema?: string | undefined;
|
2724
2727
|
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
2725
2728
|
to?: string[] | undefined;
|
2726
|
-
using?: string | undefined;
|
2727
2729
|
withCheck?: string | undefined;
|
2728
2730
|
on?: string | undefined;
|
2729
2731
|
}>;
|
2730
|
-
checkConstraints: Record<string, {
|
2731
|
-
value: string;
|
2732
|
-
name: string;
|
2733
|
-
}>;
|
2734
2732
|
isRLSEnabled: boolean;
|
2735
2733
|
}>;
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
2741
|
-
to?: string[] | undefined;
|
2742
|
-
using?: string | undefined;
|
2743
|
-
withCheck?: string | undefined;
|
2744
|
-
on?: string | undefined;
|
2745
|
-
}>;
|
2746
|
-
enums: Record<string, {
|
2747
|
-
values: string[];
|
2748
|
-
name: string;
|
2749
|
-
schema: string;
|
2750
|
-
}>;
|
2734
|
+
id: string;
|
2735
|
+
prevId: string;
|
2736
|
+
version: "7";
|
2737
|
+
dialect: "postgresql";
|
2751
2738
|
schemas: Record<string, string>;
|
2739
|
+
_meta: {
|
2740
|
+
columns: Record<string, string>;
|
2741
|
+
tables: Record<string, string>;
|
2742
|
+
schemas: Record<string, string>;
|
2743
|
+
};
|
2752
2744
|
views: Record<string, {
|
2753
2745
|
name: string;
|
2754
|
-
schema: string;
|
2755
2746
|
columns: Record<string, {
|
2756
|
-
type: string;
|
2757
2747
|
name: string;
|
2748
|
+
type: string;
|
2758
2749
|
primaryKey: boolean;
|
2759
2750
|
notNull: boolean;
|
2760
|
-
typeSchema?: string | undefined;
|
2761
2751
|
default?: any;
|
2762
2752
|
isUnique?: any;
|
2763
|
-
uniqueName?: string | undefined;
|
2764
|
-
nullsNotDistinct?: boolean | undefined;
|
2765
2753
|
generated?: {
|
2766
2754
|
type: "stored";
|
2767
2755
|
as: string;
|
2768
2756
|
} | undefined;
|
2757
|
+
typeSchema?: string | undefined;
|
2758
|
+
uniqueName?: string | undefined;
|
2759
|
+
nullsNotDistinct?: boolean | undefined;
|
2769
2760
|
identity?: {
|
2770
|
-
type: "always" | "byDefault";
|
2771
2761
|
name: string;
|
2762
|
+
type: "always" | "byDefault";
|
2772
2763
|
schema: string;
|
2773
2764
|
increment?: string | undefined;
|
2774
2765
|
minValue?: string | undefined;
|
@@ -2778,8 +2769,11 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2778
2769
|
cycle?: boolean | undefined;
|
2779
2770
|
} | undefined;
|
2780
2771
|
}>;
|
2781
|
-
|
2772
|
+
schema: string;
|
2782
2773
|
isExisting: boolean;
|
2774
|
+
materialized: boolean;
|
2775
|
+
using?: string | undefined;
|
2776
|
+
definition?: string | undefined;
|
2783
2777
|
with?: {
|
2784
2778
|
checkOption?: "local" | "cascaded" | undefined;
|
2785
2779
|
securityBarrier?: boolean | undefined;
|
@@ -2803,11 +2797,24 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2803
2797
|
logAutovacuumMinDuration?: number | undefined;
|
2804
2798
|
userCatalogTable?: boolean | undefined;
|
2805
2799
|
} | undefined;
|
2806
|
-
using?: string | undefined;
|
2807
|
-
definition?: string | undefined;
|
2808
2800
|
withNoData?: boolean | undefined;
|
2809
2801
|
tablespace?: string | undefined;
|
2810
2802
|
}>;
|
2803
|
+
enums: Record<string, {
|
2804
|
+
name: string;
|
2805
|
+
values: string[];
|
2806
|
+
schema: string;
|
2807
|
+
}>;
|
2808
|
+
policies: Record<string, {
|
2809
|
+
name: string;
|
2810
|
+
using?: string | undefined;
|
2811
|
+
as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
|
2812
|
+
schema?: string | undefined;
|
2813
|
+
for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
|
2814
|
+
to?: string[] | undefined;
|
2815
|
+
withCheck?: string | undefined;
|
2816
|
+
on?: string | undefined;
|
2817
|
+
}>;
|
2811
2818
|
sequences: Record<string, {
|
2812
2819
|
name: string;
|
2813
2820
|
schema: string;
|
@@ -2824,20 +2831,13 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2824
2831
|
createRole?: boolean | undefined;
|
2825
2832
|
inherit?: boolean | undefined;
|
2826
2833
|
}>;
|
2827
|
-
_meta: {
|
2828
|
-
tables: Record<string, string>;
|
2829
|
-
columns: Record<string, string>;
|
2830
|
-
schemas: Record<string, string>;
|
2831
|
-
};
|
2832
|
-
id: string;
|
2833
|
-
prevId: string;
|
2834
2834
|
internal?: {
|
2835
2835
|
tables: Record<string, {
|
2836
2836
|
columns: Record<string, {
|
2837
|
+
isDefaultAnExpression?: boolean | undefined;
|
2837
2838
|
isArray?: boolean | undefined;
|
2838
2839
|
dimensions?: number | undefined;
|
2839
2840
|
rawType?: string | undefined;
|
2840
|
-
isDefaultAnExpression?: boolean | undefined;
|
2841
2841
|
} | undefined>;
|
2842
2842
|
} | undefined>;
|
2843
2843
|
} | undefined;
|