X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/118fd7ac41a586001b4c8f45c149731cc9a2e586..8f939c57adbcfa3bb6f2ab9625881495140c4501:/publishers/migrations/0001_initial.py diff --git a/publishers/migrations/0001_initial.py b/publishers/migrations/0001_initial.py new file mode 100644 index 0000000..1a77507 --- /dev/null +++ b/publishers/migrations/0001_initial.py @@ -0,0 +1,34 @@ +# -*- 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 'Publisher' + db.create_table(u'publishers_publisher', ( + (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('name', self.gf('django.db.models.fields.CharField')(max_length=255)), + ('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100)), + )) + db.send_create_signal(u'publishers', ['Publisher']) + + + def backwards(self, orm): + # Deleting model 'Publisher' + db.delete_table(u'publishers_publisher') + + + models = { + u'publishers.publisher': { + 'Meta': {'object_name': 'Publisher'}, + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}) + } + } + + complete_apps = ['publishers'] \ No newline at end of file