mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Add "showmigrations" task to invoke (#7482)
- Helpful for debugging user installs
This commit is contained in:
		
							
								
								
									
										6
									
								
								tasks.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tasks.py
									
									
									
									
									
								
							| @@ -468,6 +468,12 @@ def migrate(c): | |||||||
|     print('InvenTree database migrations completed!') |     print('InvenTree database migrations completed!') | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @task(help={'app': 'Specify an app to show migrations for (leave blank for all apps)'}) | ||||||
|  | def showmigrations(c, app=''): | ||||||
|  |     """Show the migration status of the database.""" | ||||||
|  |     manage(c, f'showmigrations {app}', pty=True) | ||||||
|  |  | ||||||
|  |  | ||||||
| @task( | @task( | ||||||
|     post=[clean_settings, translate_stats], |     post=[clean_settings, translate_stats], | ||||||
|     help={ |     help={ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user