-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change visualisation -> dataset m2m id to bigint (#2826)
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
dataworkspace/dataworkspace/apps/datasets/migrations/0153_vis_dataset_m2m_bigint.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,22 @@ | ||
# Generated by Django 3.2.20 on 2023-10-26 13:11 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("datasets", "0152_auto_20230927_1121"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunSQL( | ||
""" | ||
ALTER TABLE datasets_visualisationcatalogueitem_datasets | ||
ALTER COLUMN id TYPE BIGINT | ||
""", | ||
reverse_sql=""" | ||
ALTER TABLE datasets_visualisationcatalogueitem_datasets | ||
ALTER COLUMN id TYPE INT | ||
""", | ||
) | ||
] |