Skip to content

Commit

Permalink
reset.migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
zaharazod committed Aug 28, 2024
1 parent f8a5f50 commit 1977669
Show file tree
Hide file tree
Showing 17 changed files with 100 additions and 483 deletions.
Empty file.
19 changes: 10 additions & 9 deletions apps/huri/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by Django 5.0.7 on 2024-08-06 15:02
# Generated by Django 5.1 on 2024-08-28 13:33

import apps.huri.models
import awa.models
import colorfield.fields
import django.db.models.deletion
Expand Down Expand Up @@ -83,7 +82,8 @@ class Migration(migrations.Migration):
models.FilePathField(
match=".*\\.(png)$",
max_length=20,
path=apps.huri.models.ICON_TYPE_PATH,
path="/home/matt/hack/awa/apps/huri/resources/themes/default",
recursive=True,
),
),
(
Expand All @@ -95,11 +95,12 @@ class Migration(migrations.Migration):
),
),
],
),
migrations.AddConstraint(
model_name="themeicon",
constraint=models.UniqueConstraint(
fields=("theme", "icon_type"), name="unique_icon_type_per_theme"
),
options={
"constraints": [
models.UniqueConstraint(
fields=("theme", "icon_type"), name="unique_icon_type_per_theme"
)
],
},
),
]
23 changes: 0 additions & 23 deletions apps/huri/migrations/0002_alter_themeicon_icon_type.py

This file was deleted.

6 changes: 3 additions & 3 deletions apps/mana/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.0.6 on 2024-07-19 11:48
# Generated by Django 5.1 on 2024-08-28 13:33

import django.contrib.auth.validators
import django.db.models.deletion
Expand Down Expand Up @@ -108,7 +108,7 @@ class Migration(migrations.Migration):
django_currentuser.db.models.fields.CurrentUserField(
default=django_currentuser.middleware.get_current_authenticated_user,
null=True,
on_delete=django.db.models.deletion.CASCADE,
on_delete=django.db.models.deletion.SET_DEFAULT,
related_name="%(app_label)s_%(class)s_created",
to=settings.AUTH_USER_MODEL,
),
Expand All @@ -129,7 +129,7 @@ class Migration(migrations.Migration):
django_currentuser.db.models.fields.CurrentUserField(
default=django_currentuser.middleware.get_current_authenticated_user,
null=True,
on_delete=django.db.models.deletion.CASCADE,
on_delete=django.db.models.deletion.SET_DEFAULT,
on_update=True,
related_name="%(app_label)s_%(class)s_modified",
to=settings.AUTH_USER_MODEL,
Expand Down

This file was deleted.

30 changes: 15 additions & 15 deletions apps/rakau/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.0.6 on 2024-07-19 11:48
# Generated by Django 5.1 on 2024-08-28 13:33

import django.db.models.deletion
from django.db import migrations, models
Expand Down Expand Up @@ -39,7 +39,7 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="ara.context",
to="rakau.context",
),
),
("path", models.SlugField()),
Expand All @@ -49,11 +49,11 @@ class Migration(migrations.Migration):
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="children",
to="ara.context",
to="rakau.context",
),
),
],
bases=("ara.context",),
bases=("rakau.context",),
),
migrations.CreateModel(
name="ContextRoot",
Expand All @@ -66,13 +66,13 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="ara.context",
to="rakau.context",
),
),
("project_name", models.CharField(max_length=32, unique=True)),
("default_path", models.CharField(default="index", max_length=128)),
],
bases=("ara.context",),
bases=("rakau.context",),
),
migrations.CreateModel(
name="ContextFile",
Expand All @@ -85,12 +85,12 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="ara.contextpath",
to="rakau.contextpath",
),
),
("file", models.FileField(upload_to="")),
],
bases=("ara.contextpath",),
bases=("rakau.contextpath",),
),
migrations.CreateModel(
name="SiteContext",
Expand All @@ -114,15 +114,15 @@ class Migration(migrations.Migration):
"context_root",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="ara.contextroot",
to="rakau.contextroot",
),
),
],
),
migrations.AddField(
model_name="contextroot",
name="sites",
field=models.ManyToManyField(through="ara.SiteContext", to="sites.site"),
field=models.ManyToManyField(through="rakau.SiteContext", to="sites.site"),
),
migrations.CreateModel(
name="ContentNode",
Expand All @@ -135,7 +135,7 @@ class Migration(migrations.Migration):
parent_link=True,
primary_key=True,
serialize=False,
to="ara.contextpath",
to="rakau.contextpath",
),
),
("object_id", models.PositiveIntegerField(null=True)),
Expand All @@ -148,12 +148,12 @@ class Migration(migrations.Migration):
),
),
],
bases=("ara.contextpath",),
bases=("rakau.contextpath",),
),
migrations.AddIndex(
model_name="contextpath",
index=models.Index(
fields=["parent", "path"], name="ara_context_parent__c56010_idx"
fields=["parent", "path"], name="rakau_conte_parent__cff211_idx"
),
),
migrations.AddConstraint(
Expand All @@ -163,15 +163,15 @@ class Migration(migrations.Migration):
("parent__isnull", True), ("path__isnull", True), _negated=True
),
fields=("path", "parent"),
name="ara_contextpath_unique_context_path",
name="rakau_contextpath_unique_context_path",
nulls_distinct=True,
),
),
migrations.AddIndex(
model_name="contentnode",
index=models.Index(
fields=["content_type", "object_id"],
name="ara_content_content_0516a9_idx",
name="rakau_conte_content_fd14db_idx",
),
),
]

This file was deleted.

Loading

0 comments on commit 1977669

Please sign in to comment.