Skip to content

Commit 87b53c3

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 87b53c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: migrate_timeseries.py

+12
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)