generate migration by next id number
This commit is contained in:
parent
2aafa40e90
commit
66097014a3
@ -14,4 +14,5 @@ PaaS - creates easily deployable declarative web applications with (moslty) file
|
||||
|
||||
## TODO
|
||||
* [ ] [vm_gen] Auto generate dependency graph for `view_models/_process_order`
|
||||
* [ ] [auto_dns] Start and test `auto_dns.service`
|
||||
* [ ] [auto_dns] Start and test `auto_dns.service`
|
||||
* [ ] [migrations] ALTER doesn't work with sqlite3
|
@ -208,7 +208,8 @@ model() {
|
||||
db_migrate() {
|
||||
shift
|
||||
source venv/bin/activate
|
||||
python manager.py db migrate
|
||||
next_id=$(printf "%03d" $(($(ls -la migrations/versions/*.py | wc -l)+1)))
|
||||
python manager.py db migrate -m "${next_id}"
|
||||
_post_migrate
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user