-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Add a startup script to the app container to apply DB model migrations.
As mentioned in a comment by @chrispittman, he has provided an updated image for Peer Grading which includes DB model migrations for the session and cache tables. Therefore, we no longer need to worry about creating or maintaining additional migrations.
Originally posted by @jonespm in #11 (comment):
I think this is the best way to do it, until they add it upstream.
jonespm@547cf26I didn't commit this here incase you wanted to change it but all I did was copy the migration out of the container and added it to the
Dockerfile.umich.I don't see any way to provide a filename to
artisan:table, which could be nice. Then just remove these steps.You could run the migration at startup but that would need a script similar to the one I have for UDOIT. I don't think that's super important but would be nice to add eventually.