rake-db 2.8.22 → 2.8.24
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 +4 -3
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -264,7 +264,7 @@ declare namespace RakeDbAst {
|
|
|
264
264
|
|
|
265
265
|
type Db = DbResult<DefaultColumnTypes>;
|
|
266
266
|
type BaseTable<CT extends ColumnTypesBase> = {
|
|
267
|
-
|
|
267
|
+
exportAs: string;
|
|
268
268
|
filePath: string;
|
|
269
269
|
nowSQL?: string;
|
|
270
270
|
new (): {
|
|
@@ -286,7 +286,7 @@ type RakeDbConfig<CT extends ColumnTypesBase = DefaultColumnTypes> = {
|
|
|
286
286
|
migrationsTable: string;
|
|
287
287
|
snakeCase: boolean;
|
|
288
288
|
commands: Record<string, (options: AdapterOptions[], config: RakeDbConfig<CT>, args: string[]) => Promise<void>>;
|
|
289
|
-
import(path: string): Promise<
|
|
289
|
+
import(path: string): Promise<unknown>;
|
|
290
290
|
noPrimaryKey?: NoPrimaryKeyOption;
|
|
291
291
|
baseTable?: BaseTable<CT>;
|
|
292
292
|
appCodeUpdater?: AppCodeUpdater;
|
|
@@ -303,8 +303,9 @@ type AppCodeUpdaterParams = {
|
|
|
303
303
|
logger: QueryLogOptions['logger'];
|
|
304
304
|
baseTable: {
|
|
305
305
|
filePath: string;
|
|
306
|
-
|
|
306
|
+
exportAs: string;
|
|
307
307
|
};
|
|
308
|
+
import(path: string): Promise<unknown>;
|
|
308
309
|
};
|
|
309
310
|
type AppCodeUpdater = {
|
|
310
311
|
process(params: AppCodeUpdaterParams & {
|
package/dist/index.js
CHANGED
|
@@ -1701,7 +1701,8 @@ const migrateOrRollback = async (options, config, args, up) => {
|
|
|
1701
1701
|
cache: appCodeUpdaterCache,
|
|
1702
1702
|
logger: config.logger,
|
|
1703
1703
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1704
|
-
baseTable: config.baseTable
|
|
1704
|
+
baseTable: config.baseTable,
|
|
1705
|
+
import: config.import
|
|
1705
1706
|
}));
|
|
1706
1707
|
await adapter.close();
|
|
1707
1708
|
}
|
|
@@ -1748,7 +1749,8 @@ const processMigration = async (db, up, file, config, options, appCodeUpdaterCac
|
|
|
1748
1749
|
cache: appCodeUpdaterCache,
|
|
1749
1750
|
logger: config.logger,
|
|
1750
1751
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1751
|
-
baseTable: config.baseTable
|
|
1752
|
+
baseTable: config.baseTable,
|
|
1753
|
+
import: config.import
|
|
1752
1754
|
}));
|
|
1753
1755
|
}
|
|
1754
1756
|
};
|
|
@@ -3037,7 +3039,8 @@ const pullDbStructure = async (options, config) => {
|
|
|
3037
3039
|
cache,
|
|
3038
3040
|
logger: config.logger,
|
|
3039
3041
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3040
|
-
baseTable: config.baseTable
|
|
3042
|
+
baseTable: config.baseTable,
|
|
3043
|
+
import: config.import
|
|
3041
3044
|
}));
|
|
3042
3045
|
}
|
|
3043
3046
|
await ((_b = config == null ? void 0 : config.appCodeUpdater) == null ? void 0 : _b.afterAll({
|
|
@@ -3046,7 +3049,8 @@ const pullDbStructure = async (options, config) => {
|
|
|
3046
3049
|
cache,
|
|
3047
3050
|
logger: config.logger,
|
|
3048
3051
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3049
|
-
baseTable: config.baseTable
|
|
3052
|
+
baseTable: config.baseTable,
|
|
3053
|
+
import: config.import
|
|
3050
3054
|
}));
|
|
3051
3055
|
const unsupportedEntries = Object.entries(ctx.unsupportedTypes);
|
|
3052
3056
|
const len = unsupportedEntries.length;
|