Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Commit effd061

Browse files
author
Hugo Osvaldo Barrera
authored
Merge pull request #11 from WhyNotHugo/fix-payment-length-for-mariadb
Fix issues storing mp_id when using MariaDB
2 parents b00e7f3 + 58a0246 commit effd061

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from django.db import migrations, models
2+
3+
4+
class Migration(migrations.Migration):
5+
6+
dependencies = [
7+
('mp', '0017_preference_quantity'),
8+
]
9+
10+
operations = [
11+
migrations.AlterField(
12+
model_name='payment',
13+
name='mp_id',
14+
field=models.BigIntegerField(unique=True, verbose_name='mp id'),
15+
),
16+
]

django_mercadopago/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class Payment(models.Model):
346346
A payment received, related to a preference.
347347
"""
348348

349-
mp_id = models.IntegerField(
349+
mp_id = models.BigIntegerField(
350350
_('mp id'),
351351
unique=True,
352352
)

0 commit comments

Comments
 (0)