Skip to content

Commit d25cd3f

Browse files
Delete and recreate migrations ready to apply with --fake
1 parent fc2c885 commit d25cd3f

File tree

375 files changed

+1724
-12981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

375 files changed

+1724
-12981
lines changed

ynr/apps/bulk_adding/migrations/0001_add_trusted_to_bulk_add_group.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

ynr/apps/bulk_adding/migrations/0002_rawpeople.py renamed to ynr/apps/bulk_adding/migrations/0001_initial.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
# -*- coding: utf-8 -*-
2-
# Generated by Django 1.11.20 on 2019-03-07 18:19
3-
from __future__ import unicode_literals
1+
# Generated by Django 3.2.10 on 2021-12-14 17:21
42

5-
import django.db.models.deletion
3+
from django.db import migrations, models
64
import django.utils.timezone
75
import model_utils.fields
8-
from django.db import migrations, models
96

107

118
class Migration(migrations.Migration):
129

1310
initial = True
1411

15-
dependencies = [
16-
("bulk_adding", "0001_add_trusted_to_bulk_add_group"),
17-
("candidates", "0056_tmp_ids_to_ballot_id"),
18-
]
12+
dependencies = []
1913

2014
operations = [
2115
migrations.CreateModel(
@@ -46,13 +40,18 @@ class Migration(migrations.Migration):
4640
verbose_name="modified",
4741
),
4842
),
49-
("data", models.TextField()),
50-
("source", models.CharField(max_length=255)),
43+
("data", models.JSONField()),
44+
("source", models.CharField(max_length=512)),
5145
(
52-
"ballot",
53-
models.OneToOneField(
54-
on_delete=django.db.models.deletion.CASCADE,
55-
to="candidates.PostExtraElection",
46+
"source_type",
47+
models.CharField(
48+
choices=[
49+
("bulk_add_form", "Bulk Add form"),
50+
("council_csv", "Council CSV"),
51+
("parsed_pdf", "Parsed from a PDF"),
52+
],
53+
default="bulk_add_form",
54+
max_length=255,
5655
),
5756
),
5857
],
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 3.2.10 on 2021-12-14 17:21
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
initial = True
10+
11+
dependencies = [
12+
("bulk_adding", "0001_initial"),
13+
("candidates", "0001_initial"),
14+
]
15+
16+
operations = [
17+
migrations.AddField(
18+
model_name="rawpeople",
19+
name="ballot",
20+
field=models.OneToOneField(
21+
on_delete=django.db.models.deletion.CASCADE,
22+
to="candidates.ballot",
23+
),
24+
)
25+
]

ynr/apps/bulk_adding/migrations/0003_rawpeople_source_type.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

ynr/apps/bulk_adding/migrations/0004_move_to_jsonfield.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

ynr/apps/bulk_adding/migrations/0005_source_max_length.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

ynr/apps/bulk_adding/migrations/0006_auto_20210401_0811.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

ynr/apps/bulk_adding/migrations/0007_alter_rawpeople_data.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

ynr/apps/cached_counts/migrations/0001_initial.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

ynr/apps/cached_counts/migrations/0002_cachedcount_election.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)