From e8f4ddd26b6cfb6c8c01d0b692980eb09062941b Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Tue, 28 Feb 2023 14:14:30 -0600 Subject: [PATCH] fix: adjust type of fk from community to doc (#5240) --- .../migrations/0010_doc_ids_are_ints.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ietf/community/migrations/0010_doc_ids_are_ints.py diff --git a/ietf/community/migrations/0010_doc_ids_are_ints.py b/ietf/community/migrations/0010_doc_ids_are_ints.py new file mode 100644 index 0000000000..a76eda92a7 --- /dev/null +++ b/ietf/community/migrations/0010_doc_ids_are_ints.py @@ -0,0 +1,21 @@ +# Generated by Django 2.2.28 on 2022-11-05 11:07 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('community', '0009_add_group_exp_rule_to_groups'), + ] + + operations = [ + migrations.RunSQL( + sql="alter table community_communitylist_added_docs modify document_id int unsigned not null;", + reverse_sql="alter table community_communitylist_added_docs modify document_id varchar(255) not null;" + ), + migrations.RunSQL( + sql="alter table community_searchrule_name_contains_index modify document_id int unsigned not null;", + reverse_sql="alter table community_searchrule_name_contains_index modify document_id varchar(255) not null;" + ), + ]