rake-db 2.29.0 → 2.29.1
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 +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/node-postgres.js +5 -3
- package/dist/node-postgres.js.map +1 -1
- package/dist/node-postgres.mjs +5 -3
- package/dist/node-postgres.mjs.map +1 -1
- package/dist/postgres-js.js +5 -3
- package/dist/postgres-js.js.map +1 -1
- package/dist/postgres-js.mjs +5 -3
- package/dist/postgres-js.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3659,8 +3659,8 @@ const createOrDropDatabase = async (action, adapters, config, dontClose) => {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
};
|
|
3661
3661
|
const resetDatabaseCommand = async (adapters, config) => {
|
|
3662
|
-
await createOrDropDatabase("
|
|
3663
|
-
await createOrDropDatabase("
|
|
3662
|
+
await createOrDropDatabase("drop", adapters, config);
|
|
3663
|
+
await createOrDropDatabase("create", adapters, config, true);
|
|
3664
3664
|
for (const adapter of adapters) {
|
|
3665
3665
|
await migrate(adapter, config);
|
|
3666
3666
|
}
|
|
@@ -5876,14 +5876,14 @@ const rakeDbCliWithAdapter = (inputConfig, args = process.argv.slice(2)) => {
|
|
|
5876
5876
|
}
|
|
5877
5877
|
};
|
|
5878
5878
|
};
|
|
5879
|
-
const setRakeDbCliRunFn = (rakeDbCli
|
|
5880
|
-
rakeDbCli.run = (
|
|
5879
|
+
const setRakeDbCliRunFn = (rakeDbCli) => {
|
|
5880
|
+
rakeDbCli.run = (options, inputConfig, args) => {
|
|
5881
5881
|
const { change, run } = rakeDbCli(inputConfig, args);
|
|
5882
|
-
run(
|
|
5882
|
+
run(options);
|
|
5883
5883
|
return change;
|
|
5884
5884
|
};
|
|
5885
5885
|
};
|
|
5886
|
-
setRakeDbCliRunFn(rakeDbCliWithAdapter
|
|
5886
|
+
setRakeDbCliRunFn(rakeDbCliWithAdapter);
|
|
5887
5887
|
const runCommand = async (adapters, config, args) => {
|
|
5888
5888
|
let arg = args[0]?.split(":")[0];
|
|
5889
5889
|
if (rakeDbAliases[arg]) {
|