chore(src): delete stale Django migration files

Remove migrations that no longer correspond to active models.
This commit is contained in:
sankalp committed 2026-06-28 16:12:59 +05:45
1 parent c81a7ca935
commit 122c83bfb3
9 files changed
-433

No files matched your search

-259
View File
@@ -1,259 +0,0 @@
# Generated by Django 6.0.6 on 2026-06-28 07:26
import django.contrib.auth.models
import django.contrib.auth.validators
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("auth", "0012_alter_user_first_name_max_length"),
]
operations = [
migrations.CreateModel(
name="SiteBranding",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"favicon",
models.FileField(
blank=True,
help_text="Favicon file (.ico, .png)",
null=True,
upload_to="branding/",
),
),
(
"logo",
models.ImageField(
blank=True,
help_text="Main logo image",
null=True,
upload_to="branding/",
),
),
(
"logo_small",
models.ImageField(
blank=True,
help_text="Small logo for collapsed sidebar",
null=True,
upload_to="branding/",
),
),
(
"brand_name",
models.CharField(default="Project Management", max_length=100),
),
(
"copyright_name",
models.CharField(default="Project Management", max_length=200),
),
("is_active", models.BooleanField(default=True)),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
],
options={
"verbose_name": "Site Branding",
"verbose_name_plural": "Site Branding",
"db_table": "site_branding",
},
),
migrations.CreateModel(
name="User",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("password", models.CharField(max_length=128, verbose_name="password")),
(
"last_login",
models.DateTimeField(
blank=True, null=True, verbose_name="last login"
),
),
(
"is_superuser",
models.BooleanField(
default=False,
help_text="Designates that this user has all permissions without explicitly assigning them.",
verbose_name="superuser status",
),
),
(
"username",
models.CharField(
error_messages={
"unique": "A user with that username already exists."
},
help_text="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
max_length=150,
unique=True,
validators=[
django.contrib.auth.validators.UnicodeUsernameValidator()
],
verbose_name="username",
),
),
(
"first_name",
models.CharField(
blank=True, max_length=150, verbose_name="first name"
),
),
(
"last_name",
models.CharField(
blank=True, max_length=150, verbose_name="last name"
),
),
(
"email",
models.EmailField(
blank=True, max_length=254, verbose_name="email address"
),
),
(
"is_staff",
models.BooleanField(
default=False,
help_text="Designates whether the user can log into this admin site.",
verbose_name="staff status",
),
),
(
"is_active",
models.BooleanField(
default=True,
help_text="Designates whether this user should be treated as active. Unselect this instead of deleting accounts.",
verbose_name="active",
),
),
(
"date_joined",
models.DateTimeField(
default=django.utils.timezone.now, verbose_name="date joined"
),
),
(
"role",
models.CharField(
choices=[
("superadmin", "Superadmin"),
("manager", "Manager"),
("member", "Member"),
("guest", "Guest"),
],
default="member",
max_length=20,
),
),
(
"google_id",
models.CharField(
blank=True, max_length=255, null=True, unique=True
),
),
(
"profile_image",
models.ImageField(blank=True, null=True, upload_to="profiles/"),
),
(
"receive_deadline_emails",
models.BooleanField(
default=True,
help_text="Receive email reminders when ticket deadlines are approaching",
),
),
(
"groups",
models.ManyToManyField(
blank=True,
help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.",
related_name="user_set",
related_query_name="user",
to="auth.group",
verbose_name="groups",
),
),
(
"user_permissions",
models.ManyToManyField(
blank=True,
help_text="Specific permissions for this user.",
related_name="user_set",
related_query_name="user",
to="auth.permission",
verbose_name="user permissions",
),
),
],
options={
"verbose_name": "User",
"verbose_name_plural": "Users",
"db_table": "users",
},
managers=[
("objects", django.contrib.auth.models.UserManager()),
],
),
migrations.CreateModel(
name="Setting",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("group", models.CharField(blank=True, max_length=255, null=True)),
("key", models.CharField(max_length=255)),
("value", models.TextField(blank=True, null=True)),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"user",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="settings",
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"verbose_name": "Setting",
"verbose_name_plural": "Settings",
"db_table": "settings",
"constraints": [
models.UniqueConstraint(
fields=("user", "key"), name="unique_user_setting"
)
],
},
),
]
@@ -1,23 +0,0 @@
# Generated by Django 6.0.6 on 2026-06-28 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("accounts", "0001_initial"),
("auth", "0012_alter_user_first_name_max_length"),
]
operations = [
migrations.AddIndex(
model_name="setting",
index=models.Index(
fields=["user", "group"], name="settings_user_id_ab191f_idx"
),
),
migrations.AddIndex(
model_name="user",
index=models.Index(fields=["role"], name="users_role_0ace22_idx"),
),
]
View File
Whitespace-only changes.
-50
View File
@@ -1,50 +0,0 @@
# Generated by Django 6.0.6 on 2026-06-28 07:26
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("projects", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Epic",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=255)),
("description", models.TextField(blank=True, null=True)),
("start_date", models.DateField(blank=True, null=True)),
("end_date", models.DateField(blank=True, null=True)),
("sort_order", models.IntegerField(default=0)),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"project",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="epics",
to="projects.project",
),
),
],
options={
"verbose_name": "Epic",
"verbose_name_plural": "Epics",
"db_table": "epics",
"ordering": ("sort_order",),
},
),
]
@@ -1,19 +0,0 @@
# Generated by Django 6.0.6 on 2026-06-28 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("epics", "0001_initial"),
("projects", "0002_projectmember_project_mem_user_id_6b0bb0_idx"),
]
operations = [
migrations.AddIndex(
model_name="epic",
index=models.Index(
fields=["project", "sort_order"], name="epics_project_eeb4de_idx"
),
),
]
View File
Whitespace-only changes.
-63
View File
@@ -1,63 +0,0 @@
# Generated by Django 6.0.6 on 2026-06-28 07:26
import django.db.models.deletion
from django.db import migrations, models
import src.external.models
class Migration(migrations.Migration):
initial = True
dependencies = [
("projects", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="ExternalAccess",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"access_token",
models.CharField(
default=src.external.models.generate_access_token,
max_length=255,
unique=True,
),
),
(
"password",
models.CharField(
default=src.external.models.generate_access_password,
max_length=255,
),
),
("is_active", models.BooleanField(default=True)),
("last_accessed_at", models.DateTimeField(blank=True, null=True)),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
(
"project",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="external_accesses",
to="projects.project",
),
),
],
options={
"verbose_name": "External Access",
"verbose_name_plural": "External Accesses",
"db_table": "external_access",
},
),
]
@@ -1,19 +0,0 @@
# Generated by Django 6.0.6 on 2026-06-28 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("external", "0001_initial"),
("projects", "0002_projectmember_project_mem_user_id_6b0bb0_idx"),
]
operations = [
migrations.AddIndex(
model_name="externalaccess",
index=models.Index(
fields=["project", "is_active"], name="external_ac_project_d7e6b3_idx"
),
),
]
View File
Whitespace-only changes.