aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorTeddy Wing2017-08-01 01:04:28 +0200
committerTeddy Wing2017-08-01 01:11:32 +0200
commit125ca30fd9a5f91e5b39f6c9d232bfb1b4e4052c (patch)
treee57e6306d9bc0bf055b4a91e94b204c458da5a41 /db
parentd1bdc16c9b1ad9a2b17b90a998640ebad1c02f9a (diff)
downloadsorbot-125ca30fd9a5f91e5b39f6c9d232bfb1b4e4052c.tar.bz2
Install 'dbmigrations-sqlite'
Use this for database migrations. Seems to be the right tool for database migrations in Haskell. Originally I had thought about doing it manually with 'up' and 'down' SQL files and some kind of Makefile or script to run them, but then realised that, of course, you have to keep track of which migration you're on, and figured, well, might want to outsource that to another program. I had originally written my migration in Mark Bates' pop/soda format, but will have to convert that for 'dbmigrations'. Thankfully got a little help from https://github.com/basti1302/elm-lang-de#development-setup on how to actually install the 'dbmigrations-sqlite' package using Stack. Put the installation command into a new "setup.sh" file to make it easily repeatable. Needed to add a bunch of lines to the `extra-deps` section of "stack.yaml" in order to be able to properly install the package.
Diffstat (limited to 'db')
0 files changed, 0 insertions, 0 deletions