Skip to content
Snippets Groups Projects
Commit 0c515784 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

+++ WARNING +++ THE BIG MIGRATION RECREATION +++ WARNING +++

IN CASE OF MERGING THIS BRANCH YOU HAVE TO DELETE YOUR WHOLE DATABASE TO DO NEW MIGRATIONS!
parent 5143abc9
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.0.7 on 2018-11-28 16:14
# Generated by Django 2.2.1 on 2019-05-29 15:05
from django.db import migrations, models
import helper
class Migration(migrations.Migration):
initial = True
dependencies = [
......@@ -11,12 +13,17 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name='MealPlan',
name='Menu',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('calendar_week', models.IntegerField()),
('year', models.IntegerField()),
('pdf', models.FileField(upload_to='mealplan/%Y/')),
('calendar_week', models.IntegerField(verbose_name='KW')),
('year', models.IntegerField(verbose_name='Jahr')),
('pdf', models.FileField(upload_to=helper.path_and_rename, verbose_name='PDF')),
],
options={
'verbose_name': 'Speiseplan',
'verbose_name_plural': 'Speisepläne',
'unique_together': {('calendar_week', 'year')},
},
),
]
# Generated by Django 2.0.7 on 2018-11-29 16:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='mealplan',
name='pdf',
field=models.FileField(upload_to='menus/'),
),
]
# Generated by Django 2.0.7 on 2018-11-29 16:47
from django.db import migrations, models
import helper
class Migration(migrations.Migration):
dependencies = [
('menu', '0002_auto_20181129_1743'),
]
operations = [
migrations.AlterField(
model_name='mealplan',
name='pdf',
field=models.FileField(upload_to=helper.path_and_rename),
),
]
# Generated by Django 2.0.7 on 2018-12-11 15:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('menu', '0003_auto_20181129_1747'),
]
operations = [
migrations.AlterUniqueTogether(
name='mealplan',
unique_together={('calendar_week', 'year')},
),
]
# Generated by Django 2.0.7 on 2018-12-11 16:43
from django.db import migrations, models
import helper
class Migration(migrations.Migration):
dependencies = [
('menu', '0004_auto_20181211_1648'),
]
operations = [
migrations.CreateModel(
name='Menu',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('calendar_week', models.IntegerField(verbose_name='KW')),
('year', models.IntegerField(verbose_name='Jahr')),
('pdf', models.FileField(upload_to=helper.path_and_rename, verbose_name='PDF')),
],
options={
'verbose_name': 'Speiseplan',
'verbose_name_plural': 'Speisepläne',
},
),
migrations.DeleteModel(
name='MealPlan',
),
migrations.AlterUniqueTogether(
name='menu',
unique_together={('calendar_week', 'year')},
),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment