Skip to content

Commit

Permalink
Added tasks for migration + upgrade of the db
Browse files Browse the repository at this point in the history
  • Loading branch information
JayKayAce committed Jul 13, 2019
1 parent f7246ba commit cff6994
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Migrate database",
"type": "shell",
"command": "pipenv",
"args": [
"run",
"flask",
"db",
"migrate",
"-m",
"${input:message}"
]
},
{
"label": "Upgrade database",
"type": "shell",
"command": "pipenv",
"args": [
"run",
"flask",
"db",
"upgrade"
]
},
],
"inputs": [
{
"id": "message",
"type": "promptString",
"description": "Write Migration message"
}
]
}

0 comments on commit cff6994

Please sign in to comment.