Add block for declared var
This commit is contained in:
@@ -12,7 +12,7 @@ async function main(): Promise<void> {
|
|||||||
await migrate();
|
await migrate();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "status":
|
case "status": {
|
||||||
const status = await migrationStatus();
|
const status = await migrationStatus();
|
||||||
console.log("Applied migrations:");
|
console.log("Applied migrations:");
|
||||||
for (const name of status.applied) {
|
for (const name of status.applied) {
|
||||||
@@ -27,6 +27,7 @@ async function main(): Promise<void> {
|
|||||||
console.log("\nNo pending migrations");
|
console.log("\nNo pending migrations");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.error(`Unknown command: ${command}`);
|
console.error(`Unknown command: ${command}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user