mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-08 16:43:47 +01:00
5a0aa636f3
Fixes #125
10 lines
349 B
Bash
Executable File
10 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Create a database migration, and copy it back to the host.
|
|
|
|
docker exec contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate"
|
|
docker exec -u root contentdb_app_1 sh -c "cp /home/cdb/migrations/versions/* /source/migrations/versions/"
|
|
|
|
USER=$(whoami)
|
|
sudo chown -R $USER:$USER migrations/versions
|