Skip to content

Commit

Permalink
fix: task py:migrate description (mealie-recipes#3932)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuchenpirat authored Jul 23, 2024
1 parent 2c4d0b6 commit 8c29bd3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ tasks:
- poetry run python mealie/app.py

py:migrate:
desc: generates a new database migration file e.g. task py:migrate "add new column"
desc: generates a new database migration file e.g. task py:migrate -- "add new column"
cmds:
- poetry run alembic revision --autogenerate -m "{{ .CLI_ARGS }}"
- task: py:format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ How exactly you need to modify it is of course highly contextual to the change y

## Using Alembic to generate upgrade script

In your dev container you can run something like (change the message) `task py:migrate "Add creation tag to group preferences"` to have Alembic generate an upgrade script for you.
In your dev container you can run something like (change the message) `task py:migrate -- "Add creation tag to group preferences"` to have Alembic generate an upgrade script for you.

The script Alembic generates, will be limited! (Perhaps there's a way to resolve that? Haven't looked into it yet)
For example, Alembic generated a script _similar_ to this (it has been modified already to have accurate foreign key names, for instance):
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/overrides/api.html

Large diffs are not rendered by default.

0 comments on commit 8c29bd3

Please sign in to comment.