Skip to content

Commit

Permalink
Recreate migrations from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jul 6, 2024
1 parent e4cc6ba commit d0cd4f3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 78 deletions.
2 changes: 1 addition & 1 deletion accounts/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.1b1 on 2024-07-05 08:05
# Generated by Django 5.1b1 on 2024-07-06 17:17

import django.utils.timezone
from django.db import migrations, models
Expand Down
17 changes: 8 additions & 9 deletions projects/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.1b1 on 2024-07-03 14:42
# Generated by Django 5.1b1 on 2024-07-06 17:17

import django.db.models.deletion
from django.conf import settings
Expand Down Expand Up @@ -26,12 +26,7 @@ class Migration(migrations.Migration):
),
),
("name", models.CharField(max_length=100, verbose_name="name")),
(
"token",
models.CharField(
editable=False, max_length=100, verbose_name="token"
),
),
("slug", models.SlugField(unique=True, verbose_name="slug")),
(
"users",
models.ManyToManyField(
Expand All @@ -44,9 +39,9 @@ class Migration(migrations.Migration):
),
],
options={
"ordering": ["name"],
"verbose_name": "project",
"verbose_name_plural": "projects",
"ordering": ["name"],
},
),
migrations.CreateModel(
Expand All @@ -63,7 +58,9 @@ class Migration(migrations.Migration):
),
(
"language_code",
models.CharField(choices=[("", "")], verbose_name="language"),
models.CharField(
choices=[("", "")], max_length=10, verbose_name="language"
),
),
(
"domain",
Expand All @@ -85,6 +82,8 @@ class Migration(migrations.Migration):
options={
"verbose_name": "catalog",
"verbose_name_plural": "catalogs",
"ordering": ["language_code", "domain"],
"unique_together": {("project", "language_code", "domain")},
},
),
]

This file was deleted.

20 changes: 0 additions & 20 deletions projects/migrations/0003_project_slug.py

This file was deleted.

16 changes: 0 additions & 16 deletions projects/migrations/0004_remove_project_token.py

This file was deleted.

4 changes: 3 additions & 1 deletion projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ class Catalog(models.Model):
related_name="catalogs",
verbose_name=_("project"),
)
language_code = ChoicesCharField(_("language"), choices=global_settings.LANGUAGES)
language_code = ChoicesCharField(
_("language"), max_length=10, choices=global_settings.LANGUAGES
)
domain = models.CharField(_("domain"), max_length=20, default="django")
pofile = models.TextField("pofile")

Expand Down

0 comments on commit d0cd4f3

Please sign in to comment.