Skip to content

Commit 73c5fe0

Browse files
committed
Migration to make two sequences BIGINT.
1 parent 07d0ef9 commit 73c5fe0

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

CHANGES/+bigint_sequences.bugfix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Altered some sequences to be BIGINT instead of INTEGER.
2+
3+
This addresses the failure noted in https://issues.redhat.com/browse/PULP-890 .
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by Django 5.2.6 on 2025-09-23 11:54
2+
3+
from django.db import migrations, models
4+
5+
6+
# This is an IDEMPOTENT change - it can be backported, because applying it
7+
# multiple times is harmless.
8+
update_sequences_to_bigint = """
9+
ALTER SEQUENCE container_blobmanifest_id_seq AS BIGINT;
10+
ALTER SEQUENCE container_manifestlistmanifest_id_seq AS BIGINT;
11+
"""
12+
13+
class Migration(migrations.Migration):
14+
15+
dependencies = [
16+
('container', '0046_alter_manifest_listed_manifests'),
17+
]
18+
19+
operations = [
20+
migrations.RunSQL(update_sequences_to_bigint),
21+
]

0 commit comments

Comments
 (0)