未验证 提交 1b807fb4 编写于 作者: M Maxim Zhiltsov 提交者: GitHub

Add missing migration for webhooks (#5078)

* Add missing migration

* Change field type
上级 688cc236
# Generated by Django 3.2.15 on 2022-10-11 09:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webhooks', '0002_alter_webhookdelivery_status_code'),
]
operations = [
migrations.AlterField(
model_name='webhookdelivery',
name='status_code',
field=models.PositiveIntegerField(default=None, null=True),
),
]
......@@ -3,7 +3,6 @@
# SPDX-License-Identifier: MIT
from enum import Enum
from http import HTTPStatus
from django.contrib.auth.models import User
from django.db import models
......@@ -89,9 +88,7 @@ class WebhookDelivery(models.Model):
)
event = models.CharField(max_length=64)
status_code = models.IntegerField(
choices=tuple((x.name, x.value) for x in HTTPStatus), null=True, default=None
)
status_code = models.PositiveIntegerField(null=True, default=None)
redelivery = models.BooleanField(default=False)
created_date = models.DateTimeField(auto_now_add=True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册