SQL string does not contain any statement

I currently have 1 sqliteTable on my schema and 1 migration, so I wan't to create a new table and migration. When I run the drizzle-kit generate:sqlite command, all works well, but when I run the migrate... one error heppens: LibsqlError: SQL_NO_STATEMENT: SQL string does not contain any statement

this is my migrate.ts file

import { migrate } from "drizzle-orm/libsql/migrator";
import { db } from "../lib/db";

async function main() {
  try {
    await migrate(db, { migrationsFolder: "src/drizzle/migrations" });
    console.log("Tables migrated!");
    process.exit(0);
  } catch (error) {
    console.error("Error performing migration: ", error);
    process.exit(1);
  }
}

main();
Was this page helpful?