forked from mirrors/bookwyrm
database migrations for groups
This commit is contained in:
parent
2a31bf2f0c
commit
a476b52f86
2 changed files with 21 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Generated by Django 3.2.5 on 2021-10-05 09:35
|
# Generated by Django 3.2.5 on 2021-10-16 06:39
|
||||||
|
|
||||||
import bookwyrm.models.fields
|
import bookwyrm.models.fields
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
@ -9,7 +9,7 @@ import django.db.models.deletion
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
("bookwyrm", "0105_alter_connector_connector_file"),
|
("bookwyrm", "0106_user_preferred_language"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
@ -93,16 +93,6 @@ class Migration(migrations.Migration):
|
||||||
model_name="notification",
|
model_name="notification",
|
||||||
name="notification_type_valid",
|
name="notification_type_valid",
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
|
||||||
model_name="notification",
|
|
||||||
name="related_group_member",
|
|
||||||
field=models.ForeignKey(
|
|
||||||
null=True,
|
|
||||||
on_delete=django.db.models.deletion.CASCADE,
|
|
||||||
related_name="related_group_member",
|
|
||||||
to=settings.AUTH_USER_MODEL,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name="list",
|
model_name="list",
|
||||||
name="curation",
|
name="curation",
|
||||||
|
@ -141,6 +131,23 @@ class Migration(migrations.Migration):
|
||||||
max_length=255,
|
max_length=255,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="user",
|
||||||
|
name="preferred_language",
|
||||||
|
field=models.CharField(
|
||||||
|
blank=True,
|
||||||
|
choices=[
|
||||||
|
("en-us", "English"),
|
||||||
|
("de-de", "Deutsch (German)"),
|
||||||
|
("es", "Español (Spanish)"),
|
||||||
|
("fr-fr", "Français (French)"),
|
||||||
|
("zh-hans", "简体中文 (Simplified Chinese)"),
|
||||||
|
("zh-hant", "繁體中文 (Traditional Chinese)"),
|
||||||
|
],
|
||||||
|
max_length=255,
|
||||||
|
null=True,
|
||||||
|
),
|
||||||
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name="user",
|
model_name="user",
|
||||||
name="preferred_timezone",
|
name="preferred_timezone",
|
||||||
|
@ -825,7 +832,7 @@ class Migration(migrations.Migration):
|
||||||
model_name="group",
|
model_name="group",
|
||||||
name="user",
|
name="user",
|
||||||
field=bookwyrm.models.fields.ForeignKey(
|
field=bookwyrm.models.fields.ForeignKey(
|
||||||
on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL
|
on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
|
@ -835,7 +842,7 @@ class Migration(migrations.Migration):
|
||||||
blank=True,
|
blank=True,
|
||||||
default=None,
|
default=None,
|
||||||
null=True,
|
null=True,
|
||||||
on_delete=django.db.models.deletion.PROTECT,
|
on_delete=django.db.models.deletion.SET_NULL,
|
||||||
to="bookwyrm.group",
|
to="bookwyrm.group",
|
||||||
),
|
),
|
||||||
),
|
),
|
|
@ -1,13 +0,0 @@
|
||||||
# Generated by Django 3.2.5 on 2021-10-10 01:19
|
|
||||||
|
|
||||||
from django.db import migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
("bookwyrm", "0106_auto_20211005_0935"),
|
|
||||||
("bookwyrm", "0106_user_preferred_language"),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = []
|
|
Loading…
Reference in a new issue