We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599b6a7 commit c5cf896Copy full SHA for c5cf896
packages/yucca-api/src/bin/migrations.ts
@@ -28,7 +28,7 @@ const compare = async () => {
28
return { up, down };
29
};
30
31
-const asMigration = async (up: string[], down: string[]) => {
+const asMigration = (up: string[], down: string[]) => {
32
const upSql = up.map((sql) => ` await sql\`${sql}\`.execute(db);`).join('\n');
33
const downSql = down.map((sql) => ` await sql\`${sql}\`.execute(db);`).join('\n');
34
@@ -52,7 +52,7 @@ async function debug(notice = true) {
52
return;
53
}
54
55
- const migration = await asMigration(up.asSql(), down.asSql());
+ const migration = asMigration(up.asSql(), down.asSql());
56
57
console.info(migration);
58
console.info(
0 commit comments