Migrations for the Libre:Match Database
librematch_dev.sqlite3 is the database that can be used for local development of the collector and other components.
Install dbmate.
-
Create database and migrate to the latest version
dbmate --url <database_driver://db_url> up -
Rollback the latest migration
dbmate --url <database_driver://db_url> down -
Drop database if it exists
dbmate --url <database_driver://db_url> drop
dbmate up
dbmate down
dbmate drop
(by using the .env file in the root-dir of this repository)
AGPL-3.0-or-later; see LICENSE.
