Skip to content

Commit

Permalink
revert change to 0003 and init migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
glass-ships committed Sep 18, 2024
1 parent 6486145 commit 05f1dd5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/plots/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name="DataRun",
fields=[
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("run_number", models.IntegerField()),
("run_id", models.TextField()),
("created_on", models.DateTimeField(auto_now_add=True, verbose_name="Timestamp")),
Expand All @@ -22,15 +22,15 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name="Instrument",
fields=[
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("name", models.CharField(max_length=128, unique=True)),
("run_id_type", models.IntegerField(default=0)),
],
),
migrations.CreateModel(
name="PlotData",
fields=[
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("data_type", models.IntegerField()),
("data", models.TextField()),
("timestamp", models.DateTimeField(verbose_name="Timestamp")),
Expand Down
27 changes: 27 additions & 0 deletions src/apps/plots/migrations/0003_alter_default_auto_fields.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 4.2.15 on 2024-08-23 14:47

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("plots", "0002_datarun_expiration_date"),
]

operations = [
migrations.AlterField(
model_name="datarun",
name="id",
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID"),
),
migrations.AlterField(
model_name="instrument",
name="id",
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID"),
),
migrations.AlterField(
model_name="plotdata",
name="id",
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID"),
),
]

0 comments on commit 05f1dd5

Please sign in to comment.