Simon Bowie d89e92d6e1 more database changes: new database structure | 2 lat temu | |
---|---|---|
nginx-conf | 3 lat temu | |
web | 2 lat temu | |
.env.template | 3 lat temu | |
.gitignore | 3 lat temu | |
README.md | 3 lat temu | |
docker-compose.prod.yml | 3 lat temu | |
docker-compose.yml | 3 lat temu |
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'@'%';