Skip to content

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

Remove work in progress migration

Michal Ociepka9deb12dc2c69
diff --git a/product/migrations/0003_auto__add_productvariant__del_field_product_subtype_attr.py b/product/migrations/0003_auto__add_productvariant__del_field_product_subtype_attr.py
deleted file mode 100644
index 3cf12eccee..0000000000
--- a/product/migrations/0003_auto__add_productvariant__del_field_product_subtype_attr.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'ProductVariant'
- db.create_table(u'product_productvariant', (
- (u'product_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['product.Product'], unique=True, primary_key=True)),
- ('color', self.gf('django.db.models.fields.CharField')(max_length=9)),
- ))
- db.send_create_signal(u'product', ['ProductVariant'])
-
- # Deleting field 'Product.subtype_attr'
- db.delete_column(u'product_product', 'subtype_attr')
-
-
- def backwards(self, orm):
- # Deleting model 'ProductVariant'
- db.delete_table(u'product_productvariant')
-
-
- # User chose to not deal with backwards NULL issues for 'Product.subtype_attr'
- raise RuntimeError("Cannot reverse this migration. 'Product.subtype_attr' and its values cannot be restored.")
-
- models = {
- u'product.category': {
- 'Meta': {'object_name': 'Category'},
- 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
- 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': u"orm['product.Category']"}),
- 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}),
- 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
- },
- u'product.product': {
- 'Meta': {'object_name': 'Product'},
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'products'", 'to': u"orm['product.Category']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'price': ('django_prices.models.PriceField', [], {'currency': "'USD'", 'max_digits': '12', 'decimal_places': '4'}),
- 'stock': ('django.db.models.fields.DecimalField', [], {'default': "'1'", 'max_digits': '10', 'decimal_places': '4'})
- },
- u'product.productvariant': {
- 'Meta': {'object_name': 'ProductVariant', '_ormbases': [u'product.Product']},
- 'color': ('django.db.models.fields.CharField', [], {'max_length': '9'}),
- u'product_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['product.Product']", 'unique': 'True', 'primary_key': 'True'})
- }
- }
-
- complete_apps = ['product']
\ No newline at end of file