[open-ils-commits] r902 - in servres/trunk/conifer: . syrup syrup/migrations (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jul 14 20:53:07 EDT 2010
Author: gfawcett
Date: 2010-07-14 20:53:05 -0400 (Wed, 14 Jul 2010)
New Revision: 902
Added:
servres/trunk/conifer/syrup/migrations/
servres/trunk/conifer/syrup/migrations/0001_initial.py
servres/trunk/conifer/syrup/migrations/__init__.py
Modified:
servres/trunk/conifer/README
servres/trunk/conifer/settings.py
Log:
Added 'south' dependency (for schema migration)
See http://south.aeracode.org/
http://south.aeracode.org/docs/tutorial/index.html
For your first database, you'll need to
./manage.py syncdb
as usual, and then
./manage.py migrate
to playback the series of schema migrations.
Modified: servres/trunk/conifer/README
===================================================================
--- servres/trunk/conifer/README 2010-07-15 00:53:00 UTC (rev 901)
+++ servres/trunk/conifer/README 2010-07-15 00:53:05 UTC (rev 902)
@@ -42,6 +42,7 @@
Babel-0.9.4-py2.5
BabelDjango-0.2.2-py2.5
Genshi-0.5.1-py2.5
+ South-0.7
Getting this thing to run
------------------------------
@@ -59,6 +60,8 @@
* During syncdb, create yourself a superuser account.
+* ./manage.py migrate
+
* ./pybabel-extract (currently, this is optional)
* ./manage.py runserver
Modified: servres/trunk/conifer/settings.py
===================================================================
--- servres/trunk/conifer/settings.py 2010-07-15 00:53:00 UTC (rev 901)
+++ servres/trunk/conifer/settings.py 2010-07-15 00:53:05 UTC (rev 902)
@@ -83,6 +83,7 @@
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
+ 'south',
'conifer.syrup',
)
Added: servres/trunk/conifer/syrup/migrations/0001_initial.py
===================================================================
--- servres/trunk/conifer/syrup/migrations/0001_initial.py (rev 0)
+++ servres/trunk/conifer/syrup/migrations/0001_initial.py 2010-07-15 00:53:05 UTC (rev 902)
@@ -0,0 +1,357 @@
+# 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 'UserProfile'
+ db.create_table('syrup_userprofile', (
+ ('last_email_notice', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, null=True, blank=True)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('wants_email_notices', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+ ('ils_userid', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ))
+ db.send_create_signal('syrup', ['UserProfile'])
+
+ # Adding model 'ServiceDesk'
+ db.create_table('syrup_servicedesk', (
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('active', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
+ ('external_id', self.gf('django.db.models.fields.CharField')(max_length=256)),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ))
+ db.send_create_signal('syrup', ['ServiceDesk'])
+
+ # Adding model 'Term'
+ db.create_table('syrup_term', (
+ ('code', self.gf('django.db.models.fields.CharField')(max_length=64)),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=256)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('finish', self.gf('django.db.models.fields.DateField')()),
+ ('start', self.gf('django.db.models.fields.DateField')()),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ))
+ db.send_create_signal('syrup', ['Term'])
+
+ # Adding model 'Department'
+ db.create_table('syrup_department', (
+ ('service_desk', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['syrup.ServiceDesk'])),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=256)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('active', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ))
+ db.send_create_signal('syrup', ['Department'])
+
+ # Adding model 'Course'
+ db.create_table('syrup_course', (
+ ('code', self.gf('django.db.models.fields.CharField')(max_length=64)),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=1024)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('department', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['syrup.Department'])),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ))
+ db.send_create_signal('syrup', ['Course'])
+
+ # Adding model 'Z3950Target'
+ db.create_table('syrup_z3950target', (
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
+ ('database', self.gf('django.db.models.fields.CharField')(max_length=50)),
+ ('syntax', self.gf('django.db.models.fields.CharField')(default='USMARC', max_length=10)),
+ ('active', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
+ ('host', self.gf('django.db.models.fields.CharField')(max_length=50)),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('port', self.gf('django.db.models.fields.IntegerField')(default=210)),
+ ))
+ db.send_create_signal('syrup', ['Z3950Target'])
+
+ # Adding model 'Config'
+ db.create_table('syrup_config', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('value', self.gf('django.db.models.fields.CharField')(max_length=8192)),
+ ('name', self.gf('django.db.models.fields.CharField')(max_length=256)),
+ ))
+ db.send_create_signal('syrup', ['Config'])
+
+ # Adding model 'ReadingList'
+ db.create_table('syrup_readinglist', (
+ ('service_desk', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['syrup.ServiceDesk'])),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('passkey', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=256, null=True, blank=True)),
+ ('access', self.gf('django.db.models.fields.CharField')(default='CLOSE', max_length=5)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('owner', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ))
+ db.send_create_signal('syrup', ['ReadingList'])
+
+ # Adding M2M table for field courses on 'ReadingList'
+ db.create_table('syrup_readinglist_courses', (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('readinglist', models.ForeignKey(orm['syrup.readinglist'], null=False)),
+ ('course', models.ForeignKey(orm['syrup.course'], null=False))
+ ))
+ db.create_unique('syrup_readinglist_courses', ['readinglist_id', 'course_id'])
+
+ # Adding M2M table for field terms on 'ReadingList'
+ db.create_table('syrup_readinglist_terms', (
+ ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
+ ('readinglist', models.ForeignKey(orm['syrup.readinglist'], null=False)),
+ ('term', models.ForeignKey(orm['syrup.term'], null=False))
+ ))
+ db.create_unique('syrup_readinglist_terms', ['readinglist_id', 'term_id'])
+
+ # Adding model 'Group'
+ db.create_table('syrup_group', (
+ ('external_id', self.gf('django.db.models.fields.CharField')(default=None, max_length=2048, null=True, blank=True)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('reading_list', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['syrup.ReadingList'])),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ))
+ db.send_create_signal('syrup', ['Group'])
+
+ # Adding model 'Membership'
+ db.create_table('syrup_membership', (
+ ('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['syrup.Group'])),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('role', self.gf('django.db.models.fields.CharField')(default='STUDT', max_length=6)),
+ ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ))
+ db.send_create_signal('syrup', ['Membership'])
+
+ # Adding unique constraint on 'Membership', fields ['group', 'user']
+ db.create_unique('syrup_membership', ['group_id', 'user_id'])
+
+ # Adding model 'Item'
+ db.create_table('syrup_item', (
+ ('parent_heading', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['syrup.Item'], null=True, blank=True)),
+ ('publisher', self.gf('django.db.models.fields.CharField')(max_length=8192, null=True, blank=True)),
+ ('itemtype', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=1, null=True, blank=True)),
+ ('marcxml', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
+ ('author', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=8192, null=True, blank=True)),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('url', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
+ ('title', self.gf('django.db.models.fields.CharField')(max_length=8192, db_index=True)),
+ ('fileobj_mimetype', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
+ ('item_type', self.gf('django.db.models.fields.CharField')(max_length=7)),
+ ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
+ ('fileobj', self.gf('django.db.models.fields.files.FileField')(default=None, max_length=255, null=True, blank=True)),
+ ('published', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
+ ('reading_list', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['syrup.ReadingList'])),
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('bib_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
+ ))
+ db.send_create_signal('syrup', ['Item'])
+
+
+ def backwards(self, orm):
+
+ # Deleting model 'UserProfile'
+ db.delete_table('syrup_userprofile')
+
+ # Deleting model 'ServiceDesk'
+ db.delete_table('syrup_servicedesk')
+
+ # Deleting model 'Term'
+ db.delete_table('syrup_term')
+
+ # Deleting model 'Department'
+ db.delete_table('syrup_department')
+
+ # Deleting model 'Course'
+ db.delete_table('syrup_course')
+
+ # Deleting model 'Z3950Target'
+ db.delete_table('syrup_z3950target')
+
+ # Deleting model 'Config'
+ db.delete_table('syrup_config')
+
+ # Deleting model 'ReadingList'
+ db.delete_table('syrup_readinglist')
+
+ # Removing M2M table for field courses on 'ReadingList'
+ db.delete_table('syrup_readinglist_courses')
+
+ # Removing M2M table for field terms on 'ReadingList'
+ db.delete_table('syrup_readinglist_terms')
+
+ # Deleting model 'Group'
+ db.delete_table('syrup_group')
+
+ # Deleting model 'Membership'
+ db.delete_table('syrup_membership')
+
+ # Removing unique constraint on 'Membership', fields ['group', 'user']
+ db.delete_unique('syrup_membership', ['group_id', 'user_id'])
+
+ # Deleting model 'Item'
+ db.delete_table('syrup_item')
+
+
+ models = {
+ 'auth.group': {
+ 'Meta': {'object_name': 'Group'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
+ 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
+ },
+ 'auth.permission': {
+ 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
+ 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
+ },
+ 'auth.user': {
+ 'Meta': {'object_name': 'User'},
+ 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
+ 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+ 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
+ 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+ 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
+ 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
+ },
+ 'contenttypes.contenttype': {
+ 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+ 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+ },
+ 'syrup.config': {
+ 'Meta': {'object_name': 'Config'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
+ 'value': ('django.db.models.fields.CharField', [], {'max_length': '8192'})
+ },
+ 'syrup.course': {
+ 'Meta': {'object_name': 'Course'},
+ 'code': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'department': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Department']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
+ },
+ 'syrup.department': {
+ 'Meta': {'object_name': 'Department'},
+ 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
+ 'service_desk': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.ServiceDesk']"})
+ },
+ 'syrup.group': {
+ 'Meta': {'object_name': 'Group'},
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'external_id': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '2048', 'null': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'reading_list': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.ReadingList']"})
+ },
+ 'syrup.item': {
+ 'Meta': {'object_name': 'Item'},
+ 'author': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '8192', 'null': 'True', 'blank': 'True'}),
+ 'bib_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'fileobj': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
+ 'fileobj_mimetype': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'item_type': ('django.db.models.fields.CharField', [], {'max_length': '7'}),
+ 'itemtype': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '1', 'null': 'True', 'blank': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'marcxml': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'parent_heading': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Item']", 'null': 'True', 'blank': 'True'}),
+ 'published': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
+ 'publisher': ('django.db.models.fields.CharField', [], {'max_length': '8192', 'null': 'True', 'blank': 'True'}),
+ 'reading_list': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.ReadingList']"}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '8192', 'db_index': 'True'}),
+ 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
+ },
+ 'syrup.membership': {
+ 'Meta': {'unique_together': "(('group', 'user'),)", 'object_name': 'Membership'},
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Group']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'role': ('django.db.models.fields.CharField', [], {'default': "'STUDT'", 'max_length': '6'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
+ },
+ 'syrup.readinglist': {
+ 'Meta': {'object_name': 'ReadingList'},
+ 'access': ('django.db.models.fields.CharField', [], {'default': "'CLOSE'", 'max_length': '5'}),
+ 'courses': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['syrup.Course']"}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
+ 'passkey': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '256', 'null': 'True', 'blank': 'True'}),
+ 'service_desk': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.ServiceDesk']"}),
+ 'terms': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['syrup.Term']"})
+ },
+ 'syrup.servicedesk': {
+ 'Meta': {'object_name': 'ServiceDesk'},
+ 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'external_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+ },
+ 'syrup.term': {
+ 'Meta': {'object_name': 'Term'},
+ 'code': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'finish': ('django.db.models.fields.DateField', [], {}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
+ 'start': ('django.db.models.fields.DateField', [], {})
+ },
+ 'syrup.userprofile': {
+ 'Meta': {'object_name': 'UserProfile'},
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'ils_userid': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
+ 'last_email_notice': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'null': 'True', 'blank': 'True'}),
+ 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
+ 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
+ 'wants_email_notices': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
+ },
+ 'syrup.z3950target': {
+ 'Meta': {'object_name': 'Z3950Target'},
+ 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
+ 'database': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+ 'host': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+ 'port': ('django.db.models.fields.IntegerField', [], {'default': '210'}),
+ 'syntax': ('django.db.models.fields.CharField', [], {'default': "'USMARC'", 'max_length': '10'})
+ }
+ }
+
+ complete_apps = ['syrup']
Added: servres/trunk/conifer/syrup/migrations/__init__.py
===================================================================
More information about the open-ils-commits
mailing list