summaryrefslogtreecommitdiff
path: root/sublab_project/calendarium/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project/calendarium/migrations')
-rw-r--r--sublab_project/calendarium/migrations/0001_initial.py41
-rw-r--r--sublab_project/calendarium/migrations/__init__.py0
2 files changed, 41 insertions, 0 deletions
diff --git a/sublab_project/calendarium/migrations/0001_initial.py b/sublab_project/calendarium/migrations/0001_initial.py
new file mode 100644
index 0000000..2a1f0a0
--- /dev/null
+++ b/sublab_project/calendarium/migrations/0001_initial.py
@@ -0,0 +1,41 @@
+# encoding: 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 'Event'
+ db.create_table('calendarium_event', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
+ ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
+ ('start', self.gf('django.db.models.fields.DateTimeField')()),
+ ('end', self.gf('django.db.models.fields.DateTimeField')()),
+ ('source', self.gf('django.db.models.fields.CharField')(default='import', max_length=10)),
+ ))
+ db.send_create_signal('calendarium', ['Event'])
+
+
+ def backwards(self, orm):
+
+ # Deleting model 'Event'
+ db.delete_table('calendarium_event')
+
+
+ models = {
+ 'calendarium.event': {
+ 'Meta': {'ordering': "['-start']", 'object_name': 'Event'},
+ 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'end': ('django.db.models.fields.DateTimeField', [], {}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'source': ('django.db.models.fields.CharField', [], {'default': "'import'", 'max_length': '10'}),
+ 'start': ('django.db.models.fields.DateTimeField', [], {})
+ }
+ }
+
+ complete_apps = ['calendarium']
diff --git a/sublab_project/calendarium/migrations/__init__.py b/sublab_project/calendarium/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sublab_project/calendarium/migrations/__init__.py