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

Fix migrations (replace JSON field etc.)

parent 50a89067
No related branches found
No related tags found
1 merge request!186Fix migrations (replace JSON field etc.)
Pipeline #10370 failed
# Generated by Django 3.0.6 on 2020-05-29 10:29
import django.contrib.postgres.fields.jsonb
import django.contrib.sites.managers
import django.db.models.deletion
from django.db import migrations, models
......@@ -33,7 +32,7 @@ class Migration(migrations.Migration):
),
(
"extended_data",
django.contrib.postgres.fields.jsonb.JSONField(
models.JSONField(
default=dict, editable=False
),
),
......@@ -92,7 +91,7 @@ class Migration(migrations.Migration):
),
(
"extended_data",
django.contrib.postgres.fields.jsonb.JSONField(
models.JSONField(
default=dict, editable=False
),
),
......@@ -140,7 +139,7 @@ class Migration(migrations.Migration):
],
"unique_together": {("lesson_period", "week", "person")},
},
managers=[("objects", django.contrib.sites.managers.CurrentSiteManager()),],
managers=[],
),
migrations.CreateModel(
name="LessonDocumentation",
......@@ -156,7 +155,7 @@ class Migration(migrations.Migration):
),
(
"extended_data",
django.contrib.postgres.fields.jsonb.JSONField(
models.JSONField(
default=dict, editable=False
),
),
......@@ -202,6 +201,6 @@ class Migration(migrations.Migration):
],
"unique_together": {("lesson_period", "week")},
},
managers=[("objects", django.contrib.sites.managers.CurrentSiteManager()),],
managers=[],
),
]
# Generated by Django 3.0.8 on 2020-07-10 10:46
import django.contrib.postgres.fields.jsonb
import django.contrib.sites.managers
import django.db.models.deletion
from django.db import migrations, models
......@@ -28,7 +27,7 @@ class Migration(migrations.Migration):
),
(
"extended_data",
django.contrib.postgres.fields.jsonb.JSONField(
models.JSONField(
default=dict, editable=False
),
),
......
# Generated by Django 3.0.8 on 2020-07-12 12:43
import django.contrib.postgres.fields.jsonb
import django.contrib.sites.managers
import django.db.models.deletion
from django.db import migrations, models
......@@ -28,7 +27,7 @@ class Migration(migrations.Migration):
),
(
"extended_data",
django.contrib.postgres.fields.jsonb.JSONField(
models.JSONField(
default=dict, editable=False
),
),
......
......@@ -18,7 +18,6 @@ class Migration(migrations.Migration):
('extended_data', models.JSONField(default=dict, editable=False)),
],
options={
"default_permissions": (),
'permissions': (('view_week', 'Can view week overview'), ('register_absence', 'Can register absence'), ('list_personal_note_filters', 'Can list all personal note filters')),
'managed': False,
},
......
......@@ -55,7 +55,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='lessondocumentation',
name='year',
field=models.IntegerField(blank=True, default=aleksis.apps.chronos.util.date.get_current_year, null=True, verbose_name='Year'),
field=models.IntegerField(blank=True, null=True, verbose_name='Year'),
),
migrations.AlterField(
model_name='personalnote',
......@@ -70,7 +70,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='personalnote',
name='year',
field=models.IntegerField(blank=True, default=aleksis.apps.chronos.util.date.get_current_year, null=True, verbose_name='Year'),
field=models.IntegerField(blank=True, null=True, verbose_name='Year'),
),
migrations.AlterUniqueTogether(
name='lessondocumentation',
......
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