:bug: Fix Bug: Unknown column 'coupon_usercouponinfo.coupon_image' in 'field list'

huangqimin 5 年之前
父節點
當前提交
96f6c2557f
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. 21 0
      coupon/migrations/0004_usercouponinfo_coupon_image.py

+ 21 - 0
coupon/migrations/0004_usercouponinfo_coupon_image.py

@@ -0,0 +1,21 @@
1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.11.26 on 2019-12-21 12:51
3
+from __future__ import unicode_literals
4
+
5
+from django.db import migrations, models
6
+import django_models_ext.fileext
7
+
8
+
9
+class Migration(migrations.Migration):
10
+
11
+    dependencies = [
12
+        ('coupon', '0003_auto_20191221_1613'),
13
+    ]
14
+
15
+    operations = [
16
+        migrations.AddField(
17
+            model_name='usercouponinfo',
18
+            name='coupon_image',
19
+            field=models.ImageField(blank=True, help_text='\u5238\u56fe\u7247', null=True, upload_to=django_models_ext.fileext.upload_path, verbose_name='coupon_image'),
20
+        ),
21
+    ]