Fork me on GitHub
Jim Strieter12:12:47

Hi, I'm new to Luminus. I wrote a SQL script to create my database tables and I'm wondering how to run it on the same h2 database that Luminus uses. How does one do this? I thought about putting it in queries.sql and let HugSQL treat it like a template with no parameters, but that would clutter up queries.sql with functions that should only be run occasionally. Is there a way to run a SQL script directly?


In Luminus you would manage your db-migrations with luminus-migrations / migratus, usually:

Jim Strieter17:12:58

It didn't occur to me to think of creating tables as a migration, but I can see how one might. Thank you!