luminus

Jim Strieter 2021-12-21T12:14:47.028900Z

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?

javahippie 2021-12-21T16:52:41.029100Z

In Luminus you would manage your db-migrations with luminus-migrations / migratus, usually: https://github.com/luminus-framework/luminus-migrations

Jim Strieter 2021-12-21T17:14:58.029400Z

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