summaryrefslogtreecommitdiffstats
path: root/instruments/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'instruments/migrations')
-rw-r--r--instruments/migrations/0005_sop.py39
-rw-r--r--instruments/migrations/0006_sop_author_lead.py24
2 files changed, 63 insertions, 0 deletions
diff --git a/instruments/migrations/0005_sop.py b/instruments/migrations/0005_sop.py
new file mode 100644
index 0000000..0a6cc73
--- /dev/null
+++ b/instruments/migrations/0005_sop.py
@@ -0,0 +1,39 @@
+# Generated by Django 5.0.4 on 2024-10-14 15:10
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("instruments", "0004_alter_subinstrument_relative"),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name="SOP",
+ fields=[
+ ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
+ ("date_created", models.DateTimeField(auto_now_add=True)),
+ ("last_modified", models.DateTimeField(auto_now=True)),
+ ("name", models.CharField(max_length=512)),
+ ("designation", models.CharField(max_length=5)),
+ ("sp_link", models.URLField(blank=True, max_length=1000, null=True)),
+ (
+ "draft_status",
+ models.CharField(
+ choices=[
+ ("Draft", "Draft"),
+ ("Final", "Final"),
+ ("Published", "Published"),
+ ("To be reviewed", "To be reviewed"),
+ ],
+ max_length=20,
+ ),
+ ),
+ ],
+ options={
+ "abstract": False,
+ },
+ ),
+ ]
diff --git a/instruments/migrations/0006_sop_author_lead.py b/instruments/migrations/0006_sop_author_lead.py
new file mode 100644
index 0000000..2f2528b
--- /dev/null
+++ b/instruments/migrations/0006_sop_author_lead.py
@@ -0,0 +1,24 @@
+# Generated by Django 5.0.4 on 2024-10-14 15:29
+
+import django.db.models.deletion
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("instruments", "0005_sop"),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="sop",
+ name="author_lead",
+ field=models.ForeignKey(
+ default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL
+ ),
+ preserve_default=False,
+ ),
+ ]