mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Mark migrations with data operations "non atomic"
Ref: https://docs.djangoproject.com/en/dev/howto/writing-migrations/#non-atomic-migrations
This commit is contained in:
parent
140c8b5395
commit
74704a7c1e
@ -17,6 +17,8 @@ def nupdate_tree(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('build', '0012_build_sales_order'),
|
('build', '0012_build_sales_order'),
|
||||||
]
|
]
|
||||||
|
@ -31,6 +31,8 @@ def reverse_default_reference(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('build', '0017_auto_20200426_0612'),
|
('build', '0017_auto_20200426_0612'),
|
||||||
]
|
]
|
||||||
|
@ -354,6 +354,8 @@ def associate_manufacturers(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('company', '0018_supplierpart_manufacturer'),
|
('company', '0018_supplierpart_manufacturer'),
|
||||||
]
|
]
|
||||||
|
@ -19,6 +19,8 @@ def make_empty_email_field_null(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('company', '0023_auto_20200808_0715'),
|
('company', '0023_auto_20200808_0715'),
|
||||||
]
|
]
|
||||||
|
@ -138,6 +138,8 @@ def reverse_currencies(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('company', '0025_auto_20201110_1001'),
|
('company', '0025_auto_20201110_1001'),
|
||||||
]
|
]
|
||||||
|
@ -12,6 +12,8 @@ def update_tree(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('part', '0019_auto_20190908_0404'),
|
('part', '0019_auto_20190908_0404'),
|
||||||
]
|
]
|
||||||
|
@ -18,6 +18,8 @@ def create_thumbnails(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('part', '0033_auto_20200404_0445'),
|
('part', '0033_auto_20200404_0445'),
|
||||||
]
|
]
|
||||||
|
@ -16,6 +16,8 @@ def nupdate_tree(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('part', '0038_auto_20200513_0016'),
|
('part', '0038_auto_20200513_0016'),
|
||||||
]
|
]
|
||||||
|
@ -138,6 +138,8 @@ def reverse_currencies(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('part', '0055_auto_20201110_1001'),
|
('part', '0055_auto_20201110_1001'),
|
||||||
]
|
]
|
||||||
|
@ -13,6 +13,8 @@ def update_tree(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('stock', '0011_auto_20190908_0404'),
|
('stock', '0011_auto_20190908_0404'),
|
||||||
]
|
]
|
||||||
|
@ -12,6 +12,8 @@ def update_stock_item_tree(apps, schema_editor):
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('stock', '0021_auto_20200215_2232'),
|
('stock', '0021_auto_20200215_2232'),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user