Simon Bowie 8c83ef9666 start of database changes: rename 'examples' to 'books' | vor 2 Jahren | |
---|---|---|
nginx-conf | vor 3 Jahren | |
web | vor 2 Jahren | |
.env.template | vor 3 Jahren | |
.gitignore | vor 3 Jahren | |
README.md | vor 3 Jahren | |
docker-compose.prod.yml | vor 3 Jahren | |
docker-compose.yml | vor 3 Jahren |
To build the database run:
docker exec -it python python
from app import db, create_app, models
db.create_all(app=create_app())
For creating database and user:
CREATE DATABASE toolkit;
CREATE USER 'flask'@'%' IDENTIFIED BY '[PASSWORD]';
GRANT CREATE, INSERT, UPDATE, SELECT, DELETE ON toolkit.* TO 'flask'@'%';