Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 63614a8

Browse files
committed
build: include migrating timeseries
we previously did not include timeseries in INSTALLED_APPS and we did not include it in the migrate-timeseries.sh script but there's no good reason for that, and we should try to migrate all apps and databases if we can i think monorepo fixes this in some way but for now we should do this and when we move over to the monorepo we should take a second look at all these different scripts and try to consolidate the logic
1 parent 3e7aeef commit 63614a8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

django_scaffold/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"shared.django_apps.reports",
3737
"shared.django_apps.staticanalysis",
3838
"shared.django_apps.ta_timeseries",
39+
"shared.django_apps.timeseries",
3940
]
4041

4142
TELEMETRY_VANILLA_DB = "default"

migrate_timeseries.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212

1313
def run_migrate_commands():
1414
try:
15+
if settings.TA_TIMESERIES_ENABLED:
16+
print("Running timeseries migrations")
17+
call_command(
18+
"migrate",
19+
database="timeseries",
20+
app_label="timeseries",
21+
settings="django_scaffold.settings",
22+
verbosity=1,
23+
)
24+
else:
25+
print("Skipping timeseries migrations")
26+
1527
if settings.TA_TIMESERIES_ENABLED:
1628
print("Running ta_timeseries migrations")
1729
call_command(

0 commit comments

Comments
 (0)