33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
# -*- 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):
|
|
# Deleting field 'Job.modified'
|
|
db.delete_column(u'jobs_job', 'modified')
|
|
|
|
|
|
def backwards(self, orm):
|
|
|
|
# User chose to not deal with backwards NULL issues for 'Job.modified'
|
|
raise RuntimeError("Cannot reverse this migration. 'Job.modified' and its values cannot be restored.")
|
|
|
|
models = {
|
|
u'jobs.job': {
|
|
'Meta': {'object_name': 'Job'},
|
|
'company': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
|
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
|
'data': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
'location': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
|
|
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
|
|
'url': ('django.db.models.fields.CharField', [], {'max_length': '255'})
|
|
}
|
|
}
|
|
|
|
complete_apps = ['jobs'] |