Skip to content

Commit

Permalink
logical filenames for migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert-R committed Dec 12, 2023
1 parent f804226 commit c3c234d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('result', '0004_auto_20231123_1340'),
('result', '0004_migrate_json_data_to_JSONField'),
]

operations = [
Expand Down
2 changes: 1 addition & 1 deletion backend/result/migrations/0006_remove_result_old_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('result', '0005_auto_20231124_1146'),
('result', '0005_rename_json_temp_to_json_data'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def forwards_func(apps, schema_editor):
session.save()

def reverse_func(apps, schema_editor):
Session = apps.get_model('session', 'Session')
for session in Session.objects.all():
session.json_data = json.dumps(session.json_temp)
session.save()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class Migration(migrations.Migration):

dependencies = [
('session', '0003_auto_20231123_1339'),
('session', '0003_migrate_json_data_to_JSONField'),
]

operations = [
Expand Down
2 changes: 1 addition & 1 deletion backend/session/migrations/0005_remove_session_old_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('session', '0004_auto_20231124_1146'),
('session', '0004_rename_json_temp_to_json_data'),
]

operations = [
Expand Down

0 comments on commit c3c234d

Please sign in to comment.