Reset migrations.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
# Generated by Django 5.0.6 on 2024-06-03 16:26
|
# Generated by Django 5.0.6 on 2024-06-05 12:12
|
||||||
|
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
import django.utils.timezone
|
import django.utils.timezone
|
||||||
@ -7,8 +7,6 @@ from django.db import migrations, models
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
#replaces = [('beer', '0001_initial'), ('beer', '0002_batchrecipe_recipe'), ('beer', '0003_batch_recipe')]
|
|
||||||
|
|
||||||
initial = True
|
initial = True
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Generated by Django 5.0.6 on 2024-06-03 16:19
|
# Generated by Django 5.0.6 on 2024-06-05 12:12
|
||||||
|
|
||||||
import config.extras
|
import config.extras
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
@ -8,13 +8,10 @@ from django.db import migrations, models
|
|||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
#replaces = [('yeast', '0001_squashed_0026_batch_notes'), ('yeast', '0027_alter_batch_source_batch_alter_batch_strain_and_more'), ('yeast', '0028_alter_batch_id_alter_manufacturer_id_and_more'), ('yeast', '0029_alter_manufacturer_id_alter_storage_id_and_more'), ('yeast', '0030_alter_batch_id_alter_yeast_id')]
|
|
||||||
|
|
||||||
initial = True
|
initial = True
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('beer', '0001_initial'),
|
('beer', '0001_initial'),
|
||||||
#('beer', '0003_batch_recipe'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
@ -22,91 +19,78 @@ class Migration(migrations.Migration):
|
|||||||
name='Manufacturer',
|
name='Manufacturer',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('name', models.CharField(max_length=100)),
|
|
||||||
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
||||||
|
('name', models.CharField(max_length=100)),
|
||||||
('website', models.URLField(blank=True, null=True)),
|
('website', models.URLField(blank=True, null=True)),
|
||||||
],
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Storage',
|
name='Storage',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
||||||
('name', models.CharField(max_length=100)),
|
('name', models.CharField(max_length=100)),
|
||||||
('viability_loss', models.DecimalField(decimal_places=4, max_digits=6)),
|
('viability_loss', models.DecimalField(decimal_places=4, max_digits=6)),
|
||||||
('viability_interval', models.IntegerField(default=30)),
|
('viability_interval', models.IntegerField(default=30)),
|
||||||
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
|
||||||
],
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Strain',
|
name='Strain',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('name', models.CharField(max_length=100)),
|
|
||||||
('manufacturer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='yeast.manufacturer')),
|
|
||||||
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
||||||
|
('name', models.CharField(max_length=100)),
|
||||||
('long_name', models.CharField(blank=True, max_length=100)),
|
('long_name', models.CharField(blank=True, max_length=100)),
|
||||||
|
('manufacturer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='yeast.manufacturer')),
|
||||||
],
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Batch',
|
name='Batch',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
||||||
('production_date', models.DateField()),
|
|
||||||
('strain', models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='yeast.strain')),
|
|
||||||
('source', models.CharField(choices=[('ST', 'Purchased'), ('PR', 'Propogated'), ('SL', 'Fermenter Slurry')], default='ST', max_length=3)),
|
|
||||||
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
||||||
('data_web', models.URLField(blank=True, null=True)),
|
('id', config.extras.DateUUIDField(blank=True, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||||
|
('production_date', models.DateField()),
|
||||||
|
('source', models.CharField(choices=[('ST', 'Store'), ('PR', 'Propogated'), ('SL', 'Slurry')], default='ST', max_length=3)),
|
||||||
|
('notes', models.TextField(blank=True, max_length=500, null=True)),
|
||||||
|
('source_batch', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='beer.batch')),
|
||||||
|
('strain', models.ForeignKey(default=0, on_delete=django.db.models.deletion.PROTECT, to='yeast.strain')),
|
||||||
],
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Yeast',
|
name='Yeast',
|
||||||
fields=[
|
fields=[
|
||||||
|
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
||||||
('id', config.extras.DateUUIDField(blank=True, editable=False, primary_key=True, serialize=False, unique=True)),
|
('id', config.extras.DateUUIDField(blank=True, editable=False, primary_key=True, serialize=False, unique=True)),
|
||||||
('generation_num', models.IntegerField(default=0)),
|
('generation_num', models.IntegerField(default=0)),
|
||||||
('cellcount', models.IntegerField(default=100)),
|
('cellcount', models.IntegerField(default=100)),
|
||||||
('pitched', models.BooleanField(default=False)),
|
('pitched', models.BooleanField(default=False)),
|
||||||
('storage', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yeast.storage')),
|
('date_pitched', models.DateField(blank=True, null=True)),
|
||||||
('created_date', models.DateTimeField(default=django.utils.timezone.now)),
|
|
||||||
('notes', models.TextField(blank=True, max_length=500, null=True)),
|
|
||||||
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yeast.batch')),
|
|
||||||
('data_web', models.URLField(blank=True, null=True)),
|
('data_web', models.URLField(blank=True, null=True)),
|
||||||
('lot_number', models.CharField(blank=True, max_length=15, null=True)),
|
('lot_number', models.CharField(blank=True, max_length=15, null=True)),
|
||||||
('date_pitched', models.DateField(blank=True, null=True)),
|
('notes', models.TextField(blank=True, max_length=500, null=True)),
|
||||||
|
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yeast.batch')),
|
||||||
('pitched_batch', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='beer.batch')),
|
('pitched_batch', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='beer.batch')),
|
||||||
|
('storage', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yeast.storage')),
|
||||||
],
|
],
|
||||||
|
options={
|
||||||
|
'abstract': False,
|
||||||
|
},
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='batch',
|
model_name='batch',
|
||||||
name='parent',
|
name='parent',
|
||||||
field=models.ManyToManyField(blank=True, related_name='+', to='yeast.yeast'),
|
field=models.ManyToManyField(blank=True, related_name='+', to='yeast.yeast'),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
|
||||||
model_name='batch',
|
|
||||||
name='source',
|
|
||||||
field=models.CharField(choices=[('ST', 'Store'), ('PR', 'Propogated'), ('SL', 'Slurry')], default='ST', max_length=3),
|
|
||||||
),
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='batch',
|
|
||||||
name='data_web',
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='batch',
|
|
||||||
name='notes',
|
|
||||||
field=models.TextField(blank=True, max_length=500, null=True),
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='batch',
|
|
||||||
name='source_batch',
|
|
||||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='beer.batch'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='batch',
|
|
||||||
name='strain',
|
|
||||||
field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.PROTECT, to='yeast.strain'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='batch',
|
|
||||||
name='id',
|
|
||||||
field=config.extras.DateUUIDField(blank=True, editable=False, primary_key=True, serialize=False, unique=True),
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user