@ductape/cli 0.2.7 → 0.2.9
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.
|
@@ -59,7 +59,7 @@ export async function runDbMigrate(opts) {
|
|
|
59
59
|
}
|
|
60
60
|
process.stdout.write(` Applying ${migration.tag}... `);
|
|
61
61
|
try {
|
|
62
|
-
await proxy.execute('migration.run', [
|
|
62
|
+
await proxy.execute('migration.run', [[migration]], dbContext);
|
|
63
63
|
console.log('done');
|
|
64
64
|
totalApplied++;
|
|
65
65
|
}
|
|
@@ -142,7 +142,7 @@ export async function runDbMigrateRollback(opts) {
|
|
|
142
142
|
for (const migration of toRollback) {
|
|
143
143
|
process.stdout.write(` Rolling back ${migration.tag}... `);
|
|
144
144
|
try {
|
|
145
|
-
await proxy.execute('migration.rollback', [
|
|
145
|
+
await proxy.execute('migration.rollback', [[migration], 1], dbContext);
|
|
146
146
|
console.log('done');
|
|
147
147
|
}
|
|
148
148
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -101,7 +101,7 @@ export async function runDbMigrate(opts: MigrateOpts): Promise<void> {
|
|
|
101
101
|
try {
|
|
102
102
|
await proxy.execute(
|
|
103
103
|
'migration.run',
|
|
104
|
-
[
|
|
104
|
+
[[migration]],
|
|
105
105
|
dbContext,
|
|
106
106
|
);
|
|
107
107
|
console.log('done');
|
|
@@ -198,7 +198,7 @@ export async function runDbMigrateRollback(opts: MigrateRollbackOpts): Promise<v
|
|
|
198
198
|
try {
|
|
199
199
|
await proxy.execute(
|
|
200
200
|
'migration.rollback',
|
|
201
|
-
[
|
|
201
|
+
[[migration], 1],
|
|
202
202
|
dbContext,
|
|
203
203
|
);
|
|
204
204
|
console.log('done');
|