mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	fix: task py:migrate description (#3932)
This commit is contained in:
		| @@ -148,7 +148,7 @@ tasks: | |||||||
|       - poetry run python mealie/app.py |       - poetry run python mealie/app.py | ||||||
|  |  | ||||||
|   py:migrate: |   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: |     cmds: | ||||||
|       - poetry run alembic revision --autogenerate -m "{{ .CLI_ARGS }}" |       - poetry run alembic revision --autogenerate -m "{{ .CLI_ARGS }}" | ||||||
|       - task: py:format |       - task: py:format | ||||||
|   | |||||||
| @@ -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 | ## 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) | 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): | For example, Alembic generated a script _similar_ to this (it has been modified already to have accurate foreign key names, for instance): | ||||||
|   | |||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user