1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
11 # Adding model 'Event'
12 db.create_table('events_event', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('date', self.gf('django.db.models.fields.DateTimeField')(max_length=255, db_index=True)),
15 ('link', self.gf('django.db.models.fields.URLField')(max_length=200)),
16 ('title_pl', self.gf('django.db.models.fields.CharField')(max_length=255)),
17 ('title_en', self.gf('django.db.models.fields.CharField')(max_length=255)),
18 ('organizer_pl', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
19 ('organizer_en', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
20 ('place_pl', self.gf('django.db.models.fields.CharField')(max_length=255)),
21 ('place_en', self.gf('django.db.models.fields.CharField')(max_length=255)),
23 db.send_create_signal('events', ['Event'])
26 def backwards(self, orm):
27 # Deleting model 'Event'
28 db.delete_table('events_event')
33 'Meta': {'ordering': "['date']", 'object_name': 'Event'},
34 'date': ('django.db.models.fields.DateTimeField', [], {'max_length': '255', 'db_index': 'True'}),
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'link': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
37 'organizer_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
38 'organizer_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
39 'place_en': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
40 'place_pl': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
41 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
42 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '255'})
46 complete_apps = ['events']