mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Merge pull request #198 from SchrodingersGat/migration-check
Travis check to see if there are any unstaged migration files
This commit is contained in:
		| @@ -13,6 +13,8 @@ before_install: | ||||
|     - make migrate | ||||
|  | ||||
| script: | ||||
|     - git ls-files --exclude-standard --others | ||||
|     - test -z "$(git ls-files --exclude-standard --others)" | ||||
|     - make coverage | ||||
|     - make style | ||||
|  | ||||
|   | ||||
							
								
								
									
										19
									
								
								InvenTree/stock/migrations/0011_auto_20190502_0041.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								InvenTree/stock/migrations/0011_auto_20190502_0041.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| # Generated by Django 2.2 on 2019-05-01 14:41 | ||||
|  | ||||
| from django.db import migrations, models | ||||
| import uuid | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('stock', '0010_auto_20190501_2344'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterField( | ||||
|             model_name='stockitem', | ||||
|             name='uuid', | ||||
|             field=models.UUIDField(blank=True, default=uuid.uuid4, editable=False, help_text='Unique ID for the StockItem'), | ||||
|         ), | ||||
|     ] | ||||
| @@ -127,7 +127,7 @@ class StockItem(models.Model): | ||||
|         ] | ||||
|  | ||||
|     # UUID for generating QR codes | ||||
|     uuid = models.UUIDField(default=uuid.uuid4, blank=True, editable=False) | ||||
|     uuid = models.UUIDField(default=uuid.uuid4, blank=True, editable=False, help_text='Unique ID for the StockItem') | ||||
|  | ||||
|     # The 'master' copy of the part of which this stock item is an instance | ||||
|     part = models.ForeignKey('part.Part', on_delete=models.CASCADE, related_name='locations') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user