X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5eeb9dace6068f83e2b70b5222cfab0c0a5e71eb..26f3ed051ee8f2c5caa7a3119bcf30e5310d5266:/apps/waiter/migrations/0001_initial.py?ds=sidebyside 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,), + ), + ]