-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add release_date to release and compiled_release, closes #402
- Loading branch information
1 parent
42dff07
commit f3cf412
Showing
6 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Generated by Django 4.2.15 on 2024-10-07 03:57 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("process", "0040_auto_20241003_1605"), | ||
] | ||
|
||
operations = [migrations.RunSQL("DROP INDEX data_data_date_idx")] |
38 changes: 38 additions & 0 deletions
38
process/migrations/0042_compiledrelease_release_date_release_release_date.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 4.2.15 on 2024-10-07 04:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("process", "0041_auto_20241007_0357"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="compiledrelease", | ||
name="release_date", | ||
field=models.TextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name="release", | ||
name="release_date", | ||
field=models.TextField(blank=True), | ||
), | ||
migrations.RunSQL( | ||
""" | ||
UPDATE release | ||
SET release_date = COALESCE(data ->> 'date', '') | ||
FROM data | ||
WHERE data_id = data.id | ||
""" | ||
), | ||
migrations.RunSQL( | ||
""" | ||
UPDATE compiled_release | ||
SET release_date = COALESCE(data ->> 'date', '') | ||
FROM data | ||
WHERE data_id = data.id | ||
""" | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters