Commit Graph

7 Commits

Author SHA1 Message Date
Andrews Innovations 453701c17c Added create-migration command line instruction (#943)
* Added create-migration command line instruction

This update adds a command line interface to create migrations directly with sqlpage, and have it manage the timestamps and uniqueness of migration names.

* Update sqlpage/migrations/README.md

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>

* Update sqlpage/migrations/README.md

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>

* Updated with changes for config directory, migration output

Now respects the configuration_directory environment variable.

It also outputs the path of the new migration created when it is created, and takes care to display that path relative to the current working directory.

Lastly, the execution of create-migration command was moved above the rest of the initialization, so that creating a new migration does not run existing migrations. This allows you to create multiple migrations before you run sqlpage normally again to execute them.

---------

Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
2025-06-25 10:45:39 +02:00
lovasoa b1da4d6aea sql.datapage.app -> sql-page.com 2024-11-26 23:26:09 +01:00
lovasoa 54cb2aab41 move to the datapage.app domain 2024-08-17 20:06:26 +02:00
lovasoa ea14c96361 links to migrations 2024-05-23 18:36:14 +02:00
lovasoa 187a912383 include more default files and folders in release assets 2023-09-17 22:22:33 +02:00
lovasoa 32240dcf72 Improve error handling 2022-09-03 13:49:19 +02:00
lovasoa 2956411c7a rename sqlsite to sqlpage 2022-08-28 01:04:10 +02:00