diff options
author | Leif Johansson <leifj@sunet.se> | 2012-11-01 15:58:49 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-11-01 15:58:49 +0100 |
commit | 034011c5eb0eaadd88b743d36aef8566819fbc27 (patch) | |
tree | 1a5fe1a6a7b47ff629880578281ab2b875ec381a | |
parent | 64fa68a57d23d0b114b4627b4b092fde72667bc6 (diff) |
initial migration
-rw-r--r-- | meetingtools/apps/cluster/migrations/0001_initial.py | 44 | ||||
-rw-r--r-- | meetingtools/apps/cluster/migrations/__init__.py | 0 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meetingtools/apps/cluster/migrations/0001_initial.py b/meetingtools/apps/cluster/migrations/0001_initial.py new file mode 100644 index 0000000..1cadcf9 --- /dev/null +++ b/meetingtools/apps/cluster/migrations/0001_initial.py @@ -0,0 +1,44 @@ +# -*- coding: 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 'ACCluster' + db.create_table('cluster_accluster', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('api_url', self.gf('django.db.models.fields.URLField')(max_length=200)), + ('url', self.gf('django.db.models.fields.URLField')(max_length=200)), + ('user', self.gf('django.db.models.fields.CharField')(max_length=128)), + ('password', self.gf('django.db.models.fields.CharField')(max_length=128)), + ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=128, blank=True)), + ('default_template_sco_id', self.gf('django.db.models.fields.IntegerField')(unique=True, blank=True)), + ('domain_match', self.gf('django.db.models.fields.TextField')()), + )) + db.send_create_signal('cluster', ['ACCluster']) + + + def backwards(self, orm): + # Deleting model 'ACCluster' + db.delete_table('cluster_accluster') + + + models = { + 'cluster.accluster': { + 'Meta': {'object_name': 'ACCluster'}, + 'api_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), + 'default_template_sco_id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'blank': 'True'}), + 'domain_match': ('django.db.models.fields.TextField', [], {}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}), + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), + 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), + 'user': ('django.db.models.fields.CharField', [], {'max_length': '128'}) + } + } + + complete_apps = ['cluster']
\ No newline at end of file diff --git a/meetingtools/apps/cluster/migrations/__init__.py b/meetingtools/apps/cluster/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/meetingtools/apps/cluster/migrations/__init__.py |