mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
delete south migrations (#371)
This commit is contained in:
parent
0ed37e4fce
commit
fa6ae65594
3 changed files with 0 additions and 67 deletions
|
|
@ -1,32 +0,0 @@
|
|||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
# Adding model 'Constance'
|
||||
db.create_table('constance_config', (
|
||||
('id', self.gf('django.db.models.fields.AutoField')(
|
||||
primary_key=True)),
|
||||
('key', self.gf('django.db.models.fields.TextField')()),
|
||||
('value', self.gf('picklefield.fields.PickledObjectField')()),
|
||||
))
|
||||
db.send_create_signal('database', ['Constance'])
|
||||
|
||||
def backwards(self, orm):
|
||||
# Deleting model 'Constance'
|
||||
db.delete_table('constance_config')
|
||||
|
||||
models = {
|
||||
'database.constance': {
|
||||
'Meta': {'object_name': 'Constance',
|
||||
'db_table': "'constance_config'"},
|
||||
'id': ('django.db.models.fields.AutoField', [],
|
||||
{'primary_key': 'True'}),
|
||||
'key': ('django.db.models.fields.TextField', [], {}),
|
||||
'value': ('picklefield.fields.PickledObjectField', [], {})
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['database']
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
from south.db import db
|
||||
from south.v2 import SchemaMigration
|
||||
|
||||
|
||||
class Migration(SchemaMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
# Changing field 'Constance.key'
|
||||
db.alter_column('constance_config', 'key',
|
||||
self.gf('django.db.models.fields.CharField')(
|
||||
max_length=255))
|
||||
# Adding unique constraint on 'Constance', fields ['key']
|
||||
db.create_unique('constance_config', ['key'])
|
||||
|
||||
def backwards(self, orm):
|
||||
# Removing unique constraint on 'Constance', fields ['key']
|
||||
db.delete_unique('constance_config', ['key'])
|
||||
|
||||
# Changing field 'Constance.key'
|
||||
db.alter_column('constance_config', 'key',
|
||||
self.gf('django.db.models.fields.TextField')())
|
||||
|
||||
models = {
|
||||
'database.constance': {
|
||||
'Meta': {'object_name': 'Constance',
|
||||
'db_table': "'constance_config'"},
|
||||
'id': ('django.db.models.fields.AutoField', [],
|
||||
{'primary_key': 'True'}),
|
||||
'key': ('django.db.models.fields.CharField', [],
|
||||
{'unique': 'True', 'max_length': '255'}),
|
||||
'value': ('picklefield.fields.PickledObjectField', [], {})
|
||||
}
|
||||
}
|
||||
|
||||
complete_apps = ['database']
|
||||
Loading…
Reference in a new issue