X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/56511fcfdd20abcaf54827a90125c527d154125b..d69fc5f16ed739c02685e7d695abf6de59c2bf5e:/apps/waiter/migrations/0001_initial.py diff --git a/apps/waiter/migrations/0001_initial.py b/apps/waiter/migrations/0001_initial.py index a75884bac..a579d6efb 100644 --- a/apps/waiter/migrations/0001_initial.py +++ b/apps/waiter/migrations/0001_initial.py @@ -1,39 +1,27 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models +# -*- coding: utf-8 -*- +from __future__ import unicode_literals -class Migration(SchemaMigration): +from django.db import models, migrations +import picklefield.fields - def forwards(self, orm): - - # Adding model 'WaitedFile' - db.create_table('waiter_waitedfile', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('path', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255, db_index=True)), - ('task_id', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=128, null=True, blank=True)), - ('task', self.gf('picklefield.fields.PickledObjectField')(null=True)), - ('description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)), - )) - db.send_create_signal('waiter', ['WaitedFile']) +class Migration(migrations.Migration): - def backwards(self, orm): - - # Deleting model 'WaitedFile' - db.delete_table('waiter_waitedfile') + dependencies = [ + ] - - models = { - 'waiter.waitedfile': { - 'Meta': {'object_name': 'WaitedFile'}, - 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}), - 'task': ('picklefield.fields.PickledObjectField', [], {'null': 'True'}), - 'task_id': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}) - } - } - - complete_apps = ['waiter'] + operations = [ + migrations.CreateModel( + name='WaitedFile', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('path', models.CharField(unique=True, max_length=255, db_index=True)), + ('task_id', models.CharField(db_index=True, max_length=128, null=True, blank=True)), + ('task', picklefield.fields.PickledObjectField(null=True, editable=False)), + ('description', models.CharField(max_length=255, null=True, blank=True)), + ], + options={ + }, + bases=(models.Model,), + ), + ]