Remove old migration and add Django 1.7.x migration to increase lock name field size
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('lock_manager', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='lock',
|
||||
name='name',
|
||||
field=models.CharField(unique=True, max_length=64, verbose_name='Name'),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
@@ -1,30 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from south.utils import datetime_utils as datetime
|
||||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
|
||||
# Changing field 'Lock.name'
|
||||
db.alter_column(u'lock_manager_lock', 'name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=64))
|
||||
|
||||
def backwards(self, orm):
|
||||
|
||||
# Changing field 'Lock.name'
|
||||
db.alter_column(u'lock_manager_lock', 'name', self.gf('django.db.models.fields.CharField')(max_length=48, unique=True))
|
||||
|
||||
models = {
|
||||
u'lock_manager.lock': {
|
||||
'Meta': {'object_name': 'Lock'},
|
||||
'creation_datetime': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}),
|
||||
'timeout': ('django.db.models.fields.IntegerField', [], {'default': '30'})
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['lock_manager']
|
||||
Reference in New Issue
Block a user