Skip to content

Commit

Permalink
chore: ruff format migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 7, 2024
1 parent 1263dce commit 8cb8949
Show file tree
Hide file tree
Showing 54 changed files with 1,304 additions and 911 deletions.
14 changes: 6 additions & 8 deletions data_registry/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@


class Migration(migrations.Migration):

initial = True

dependencies = [
]
dependencies = []

operations = [
migrations.CreateModel(
name='Collection',
name="Collection",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.TextField()),
('ocds_label', models.TextField()),
('country', models.TextField()),
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("title", models.TextField()),
("ocds_label", models.TextField()),
("country", models.TextField()),
],
),
]
51 changes: 27 additions & 24 deletions data_registry/migrations/0002_auto_20210329_0951.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,64 @@


class Migration(migrations.Migration):

dependencies = [
('data_registry', '0001_initial'),
("data_registry", "0001_initial"),
]

operations = [
migrations.AddField(
model_name='collection',
name='created',
model_name="collection",
name="created",
field=models.DateTimeField(auto_now_add=True, db_index=True, null=True),
),
migrations.AddField(
model_name='collection',
name='date_from',
model_name="collection",
name="date_from",
field=models.DateField(blank=True, null=True),
),
migrations.AddField(
model_name='collection',
name='date_to',
model_name="collection",
name="date_to",
field=models.DateField(blank=True, null=True),
),
migrations.AddField(
model_name='collection',
name='description',
model_name="collection",
name="description",
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='collection',
name='last_update',
model_name="collection",
name="last_update",
field=models.DateField(blank=True, null=True),
),
migrations.AddField(
model_name='collection',
name='license',
model_name="collection",
name="license",
field=models.CharField(blank=True, max_length=2048, null=True),
),
migrations.AddField(
model_name='collection',
name='modified',
model_name="collection",
name="modified",
field=models.DateTimeField(auto_now=True, db_index=True, null=True),
),
migrations.AddField(
model_name='collection',
name='ocid_prefix',
model_name="collection",
name="ocid_prefix",
field=models.CharField(blank=True, max_length=2048, null=True),
),
migrations.AddField(
model_name='collection',
name='update_frequency',
field=models.CharField(blank=True, choices=[('MONTHLY', 'MONTHLY'), ('HALF_YEARLY', 'HALF_YEARLY'),
('ANNUALLY', 'ANNUALLY')], max_length=2048, null=True),
model_name="collection",
name="update_frequency",
field=models.CharField(
blank=True,
choices=[("MONTHLY", "MONTHLY"), ("HALF_YEARLY", "HALF_YEARLY"), ("ANNUALLY", "ANNUALLY")],
max_length=2048,
null=True,
),
),
migrations.AlterField(
model_name='collection',
name='country',
model_name="collection",
name="country",
field=models.CharField(blank=True, max_length=2048, null=True),
),
]
35 changes: 17 additions & 18 deletions data_registry/migrations/0003_auto_20210329_1309.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,49 @@


class Migration(migrations.Migration):

dependencies = [
('data_registry', '0002_auto_20210329_0951'),
("data_registry", "0002_auto_20210329_0951"),
]

operations = [
migrations.AddField(
model_name='collection',
name='amendments_count',
model_name="collection",
name="amendments_count",
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='collection',
name='awards_count',
model_name="collection",
name="awards_count",
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='collection',
name='contracts_count',
model_name="collection",
name="contracts_count",
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='collection',
name='documents_count',
model_name="collection",
name="documents_count",
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='collection',
name='milestones_count',
model_name="collection",
name="milestones_count",
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='collection',
name='parties_count',
model_name="collection",
name="parties_count",
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='collection',
name='plannings_count',
model_name="collection",
name="plannings_count",
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='collection',
name='tenders_count',
model_name="collection",
name="tenders_count",
field=models.IntegerField(default=0),
),
]
24 changes: 15 additions & 9 deletions data_registry/migrations/0004_auto_20210401_0902.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,30 @@


class Migration(migrations.Migration):

dependencies = [
('data_registry', '0003_auto_20210329_1309'),
("data_registry", "0003_auto_20210329_1309"),
]

operations = [
migrations.AddField(
model_name='collection',
name='summary',
field=models.TextField(default=''),
model_name="collection",
name="summary",
field=models.TextField(default=""),
preserve_default=False,
),
migrations.CreateModel(
name='Issue',
name="Issue",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('description', models.TextField()),
('collection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue', to='data_registry.collection')),
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("description", models.TextField()),
(
"collection",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="issue",
to="data_registry.collection",
),
),
],
),
]
11 changes: 5 additions & 6 deletions data_registry/migrations/0005_auto_20210406_1134.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@


class Migration(migrations.Migration):

dependencies = [
('data_registry', '0004_auto_20210401_0902'),
("data_registry", "0004_auto_20210401_0902"),
]

operations = [
migrations.AddField(
model_name='collection',
name='excel_format',
model_name="collection",
name="excel_format",
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='collection',
name='json_format',
model_name="collection",
name="json_format",
field=models.BooleanField(default=False),
),
]
101 changes: 69 additions & 32 deletions data_registry/migrations/0006_auto_20210430_1310.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,97 @@


class Migration(migrations.Migration):

dependencies = [
('data_registry', '0005_auto_20210406_1134'),
("data_registry", "0005_auto_20210406_1134"),
]

operations = [
migrations.CreateModel(
name='Job',
name="Job",
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('start', models.DateTimeField(blank=True, db_index=True, null=True)),
('end', models.DateTimeField(blank=True, db_index=True, null=True)),
('status', models.CharField(blank=True, choices=[('WAITING', 'WAITING'), ('PLANNED', 'PLANNED'), ('RUNNING', 'RUNNING'), ('COMPLETED', 'COMPLETED')], max_length=2048, null=True)),
('created', models.DateTimeField(auto_now_add=True, db_index=True, null=True)),
('modified', models.DateTimeField(auto_now=True, db_index=True, null=True)),
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("start", models.DateTimeField(blank=True, db_index=True, null=True)),
("end", models.DateTimeField(blank=True, db_index=True, null=True)),
(
"status",
models.CharField(
blank=True,
choices=[
("WAITING", "WAITING"),
("PLANNED", "PLANNED"),
("RUNNING", "RUNNING"),
("COMPLETED", "COMPLETED"),
],
max_length=2048,
null=True,
),
),
("created", models.DateTimeField(auto_now_add=True, db_index=True, null=True)),
("modified", models.DateTimeField(auto_now=True, db_index=True, null=True)),
],
),
migrations.AddField(
model_name='issue',
name='created',
model_name="issue",
name="created",
field=models.DateTimeField(auto_now_add=True, db_index=True, null=True),
),
migrations.AddField(
model_name='issue',
name='modified',
model_name="issue",
name="modified",
field=models.DateTimeField(auto_now=True, db_index=True, null=True),
),
migrations.AlterField(
model_name='collection',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
model_name="collection",
name="id",
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID"),
),
migrations.AlterField(
model_name='issue',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
model_name="issue",
name="id",
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID"),
),
migrations.CreateModel(
name='Task',
name="Task",
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('start', models.DateTimeField(blank=True, db_index=True, null=True)),
('end', models.DateTimeField(blank=True, db_index=True, null=True)),
('status', models.CharField(blank=True, choices=[('WAITING', 'WAITING'), ('PLANNED', 'PLANNED'), ('RUNNING', 'RUNNING'), ('COMPLETED', 'COMPLETED')], max_length=2048, null=True)),
('result', models.CharField(blank=True, choices=[('OK', 'OK'), ('FAILED', 'FAILED')], max_length=2048, null=True)),
('note', models.TextField()),
('created', models.DateTimeField(auto_now_add=True, db_index=True, null=True)),
('modified', models.DateTimeField(auto_now=True, db_index=True, null=True)),
('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='task', to='data_registry.job')),
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("start", models.DateTimeField(blank=True, db_index=True, null=True)),
("end", models.DateTimeField(blank=True, db_index=True, null=True)),
(
"status",
models.CharField(
blank=True,
choices=[
("WAITING", "WAITING"),
("PLANNED", "PLANNED"),
("RUNNING", "RUNNING"),
("COMPLETED", "COMPLETED"),
],
max_length=2048,
null=True,
),
),
(
"result",
models.CharField(
blank=True, choices=[("OK", "OK"), ("FAILED", "FAILED")], max_length=2048, null=True
),
),
("note", models.TextField()),
("created", models.DateTimeField(auto_now_add=True, db_index=True, null=True)),
("modified", models.DateTimeField(auto_now=True, db_index=True, null=True)),
(
"job",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, related_name="task", to="data_registry.job"
),
),
],
),
migrations.AddField(
model_name='job',
name='collection',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='job', to='data_registry.collection'),
model_name="job",
name="collection",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, related_name="job", to="data_registry.collection"
),
),
]
Loading

0 comments on commit 8cb8949

Please sign in to comment.