chore(src): delete stale Django migration files
Remove migrations that no longer correspond to active models.
This commit is contained in:
9 files changed
-433
No files matched your search
-63
@@ -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",
|
||||
},
|
||||
),
|
||||
]
|
||||
-19
@@ -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"
|
||||
),
|
||||
),
|
||||
]
|
||||
Whitespace-only changes.
Reference in new issue
Block a user