@ductape/cli 0.2.8 → 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', [{ product: productTag, env: envSlug, database: db, migrations: [migration] }], dbContext);
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', [{ product: productTag, env: envSlug, database: db, migrations: [migration] }], dbContext);
145
+ await proxy.execute('migration.rollback', [[migration], 1], dbContext);
146
146
  console.log('done');
147
147
  }
148
148
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ductape/cli",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Ductape CLI — local platform, login, link projects, and manage resources via the proxy (Workbench-compatible)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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
- [{ product: productTag, env: envSlug, database: db, migrations: [migration] }],
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
- [{ product: productTag, env: envSlug, database: db, migrations: [migration] }],
201
+ [[migration], 1],
202
202
  dbContext,
203
203
  );
204
204
  console.log('done');