Browse Source

Remove old south migrations

pull/169/head
Isaac Bythewood 5 years ago
parent
commit
6acb14be6b
4 changed files with 3 additions and 110 deletions
  1. +3
    -0
      .gitignore
  2. +0
    -65
      django_images/south_migrations/0001_initial.py
  3. +0
    -45
      django_images/south_migrations/0002_change_thumbnail_unique_constraint.py
  4. +0
    -0
      django_images/south_migrations/__init__.py

+ 3
- 0
.gitignore View File

@@ -42,3 +42,6 @@ docker-compose.yml

# mkdocs
/docs/dist/

# vscode
/.vscode

+ 0
- 65
django_images/south_migrations/0001_initial.py View File

@@ -1,65 +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 'Image'
db.create_table(u'django_images_image', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('image', self.gf('django.db.models.fields.files.ImageField')(max_length=255)),
('height', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
('width', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
))
db.send_create_signal(u'django_images', ['Image'])

# Adding model 'Thumbnail'
db.create_table(u'django_images_thumbnail', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('original', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['django_images.Image'])),
('image', self.gf('django.db.models.fields.files.ImageField')(max_length=255)),
('size', self.gf('django.db.models.fields.CharField')(max_length=100)),
('height', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
('width', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
))
db.send_create_signal(u'django_images', ['Thumbnail'])

# Adding unique constraint on 'Thumbnail', fields ['image', 'size']
db.create_unique(u'django_images_thumbnail', ['image', 'size'])


def backwards(self, orm):
# Removing unique constraint on 'Thumbnail', fields ['image', 'size']
db.delete_unique(u'django_images_thumbnail', ['image', 'size'])

# Deleting model 'Image'
db.delete_table(u'django_images_image')

# Deleting model 'Thumbnail'
db.delete_table(u'django_images_thumbnail')


models = {
u'django_images.image': {
'Meta': {'object_name': 'Image'},
'height': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255'}),
'width': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
},
u'django_images.thumbnail': {
'Meta': {'unique_together': "(('image', 'size'),)", 'object_name': 'Thumbnail'},
'height': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255'}),
'original': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['django_images.Image']"}),
'size': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'width': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
}
}

complete_apps = ['django_images']

+ 0
- 45
django_images/south_migrations/0002_change_thumbnail_unique_constraint.py View File

@@ -1,45 +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):
# Removing unique constraint on 'Thumbnail', fields ['image', 'size']
db.delete_unique(u'django_images_thumbnail', ['image', 'size'])

# Adding unique constraint on 'Thumbnail', fields ['original', 'size']
db.create_unique(u'django_images_thumbnail', ['original_id', 'size'])


def backwards(self, orm):
# Removing unique constraint on 'Thumbnail', fields ['original', 'size']
db.delete_unique(u'django_images_thumbnail', ['original_id', 'size'])

# Adding unique constraint on 'Thumbnail', fields ['image', 'size']
db.create_unique(u'django_images_thumbnail', ['image', 'size'])


models = {
u'django_images.image': {
'Meta': {'object_name': 'Image'},
'height': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255'}),
'width': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
},
u'django_images.thumbnail': {
'Meta': {'unique_together': "(('original', 'size'),)", 'object_name': 'Thumbnail'},
'height': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '255'}),
'original': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['django_images.Image']"}),
'size': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'width': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
}
}

complete_apps = ['django_images']

+ 0
- 0
django_images/south_migrations/__init__.py View File


Loading…
Cancel
Save