Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add migration file

akjanik8312b4095412
diff --git a/saleor/product/migrations/0048_collection.py b/saleor/product/migrations/0048_collection.py
new file mode 100644
index 0000000000..ac712d6226
--- /dev/null
+++ b/saleor/product/migrations/0048_collection.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2018-01-19 15:58
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('product', '0047_auto_20180117_0359'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Collection',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=128, unique=True, verbose_name='name')),
+ ('slug', models.SlugField(verbose_name='slug')),
+ ('products', models.ManyToManyField(blank=True, related_name='collections', to='product.Product')),
+ ],
+ ),
+ ]