summaryrefslogtreecommitdiff
path: root/project/kiwipycon/proceedings/migrations
diff options
context:
space:
mode:
authorMadhusudan.C.S2010-01-14 19:20:14 +0530
committerMadhusudan.C.S2010-01-14 19:20:14 +0530
commitcd6373a918dbd99b8dedaffb20e74552a44ad21e (patch)
tree9b000e5bd19993d61230ecf855e57d12ac423247 /project/kiwipycon/proceedings/migrations
parent2f7d4fef4fe3b4104d046bf22e860a114e7a2c01 (diff)
downloadscipycon-cd6373a918dbd99b8dedaffb20e74552a44ad21e.tar.gz
scipycon-cd6373a918dbd99b8dedaffb20e74552a44ad21e.tar.bz2
scipycon-cd6373a918dbd99b8dedaffb20e74552a44ad21e.zip
Added migrations files for proceedings app.
Diffstat (limited to 'project/kiwipycon/proceedings/migrations')
-rw-r--r--project/kiwipycon/proceedings/migrations/0001_initial.py69
-rw-r--r--project/kiwipycon/proceedings/migrations/__init__.py0
2 files changed, 69 insertions, 0 deletions
diff --git a/project/kiwipycon/proceedings/migrations/0001_initial.py b/project/kiwipycon/proceedings/migrations/0001_initial.py
new file mode 100644
index 0000000..5323cf7
--- /dev/null
+++ b/project/kiwipycon/proceedings/migrations/0001_initial.py
@@ -0,0 +1,69 @@
+# -*- coding: utf-8 -*-
+
+from south.db import db
+from django.db import models
+from project.kiwipycon.proceedings.models import *
+
+class Migration:
+
+ def forwards(self, orm):
+
+ # Adding model 'Paper'
+ db.create_table('proceedings_paper', (
+ ('body', models.TextField()),
+ ('abstract', models.TextField()),
+ ('id', models.AutoField(primary_key=True)),
+ ('title', models.CharField(max_length=200)),
+ ))
+ db.send_create_signal('proceedings', ['Paper'])
+
+ # Adding model 'Attachments'
+ db.create_table('proceedings_attachments', (
+ ('paper', models.ForeignKey(orm.Paper)),
+ ('id', models.AutoField(primary_key=True)),
+ ('attachments', models.FileField(upload_to='attachments/%Y/%m/%d')),
+ ))
+ db.send_create_signal('proceedings', ['Attachments'])
+
+ # Adding ManyToManyField 'Paper.authors'
+ db.create_table('proceedings_paper_authors', (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('paper', models.ForeignKey(Paper, null=False)),
+ ('user', models.ForeignKey(User, null=False))
+ ))
+
+
+
+ def backwards(self, orm):
+
+ # Deleting model 'Paper'
+ db.delete_table('proceedings_paper')
+
+ # Deleting model 'Attachments'
+ db.delete_table('proceedings_attachments')
+
+ # Dropping ManyToManyField 'Paper.authors'
+ db.delete_table('proceedings_paper_authors')
+
+
+
+ models = {
+ 'proceedings.paper': {
+ 'abstract': ('models.TextField', [], {}),
+ 'authors': ('models.ManyToManyField', ['User'], {}),
+ 'body': ('models.TextField', [], {}),
+ 'id': ('models.AutoField', [], {'primary_key': 'True'}),
+ 'title': ('models.CharField', [], {'max_length': '200'})
+ },
+ 'auth.user': {
+ '_stub': True,
+ 'id': ('models.AutoField', [], {'primary_key': 'True'})
+ },
+ 'proceedings.attachments': {
+ 'attachments': ('models.FileField', [], {'upload_to': "'attachments/%Y/%m/%d'"}),
+ 'id': ('models.AutoField', [], {'primary_key': 'True'}),
+ 'paper': ('models.ForeignKey', ['Paper'], {})
+ }
+ }
+
+ complete_apps = ['proceedings']
diff --git a/project/kiwipycon/proceedings/migrations/__init__.py b/project/kiwipycon/proceedings/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/project/kiwipycon/proceedings/migrations/__init__.py