Skip to content

Commit 2b051ef

Browse files
committed
improve code organisation
1 parent 37af8b1 commit 2b051ef

File tree

8 files changed

+7
-6
lines changed

8 files changed

+7
-6
lines changed

src/common/migrations/__init__.py

Whitespace-only changes.

src/task_processor/migrations/helpers/__init__.py renamed to src/common/migrations/helpers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
and simplified the imports by defining the __all__ attribute.
55
"""
66

7-
from task_processor.migrations.helpers.postgres_helpers import PostgresOnlyRunSQL
7+
from common.migrations.helpers.postgres_helpers import PostgresOnlyRunSQL
88

99
__all__ = ["PostgresOnlyRunSQL"]
File renamed without changes.

src/task_processor/migrations/0004_recreate_task_indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django.db import migrations, models
44

5-
from task_processor.migrations.helpers import PostgresOnlyRunSQL
5+
from common.migrations.helpers import PostgresOnlyRunSQL
66

77

88
class Migration(migrations.Migration):

src/task_processor/migrations/0005_update_conditional_index_conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django.db import migrations, models
44

5-
from task_processor.migrations.helpers import PostgresOnlyRunSQL
5+
from common.migrations.helpers import PostgresOnlyRunSQL
66

77

88
class Migration(migrations.Migration):

src/task_processor/migrations/0008_add_get_task_to_process_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django.db import migrations
44

5-
from task_processor.migrations.helpers import PostgresOnlyRunSQL
5+
from common.migrations.helpers import PostgresOnlyRunSQL
66
import os
77

88

src/task_processor/migrations/0011_add_priority_to_get_tasks_to_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django.db import migrations
44

5-
from task_processor.migrations.helpers import PostgresOnlyRunSQL
5+
from common.migrations.helpers import PostgresOnlyRunSQL
66
import os
77

88

src/task_processor/migrations/0012_add_locked_at_and_timeout.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Generated by Django 3.2.23 on 2025-01-06 04:51
22

3-
from task_processor.migrations.helpers import PostgresOnlyRunSQL
43
import datetime
54
from django.db import migrations, models
65
import os
76

7+
from common.migrations.helpers import PostgresOnlyRunSQL
8+
89

910
class Migration(migrations.Migration):
1011

0 commit comments

Comments
 (0)