Portail captif
[ongolaboy.git] / projets_django / bacgl_django / messagerie / migrations / 0004_auto__add_mailbox.py
CommitLineData
d7ea757f
WM
1# -*- coding: utf-8 -*-
2import datetime
3from south.db import db
4from south.v2 import SchemaMigration
5from django.db import models
6
7
8class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11 # Adding model 'Mailbox'
12 db.create_table('messagerie_mailbox', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('proprietaire', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['messagerie.Auth'])),
15 ('domain', self.gf('django.db.models.fields.CharField')(default='cm.auf.org', max_length=384)),
16 ('homedir', self.gf('django.db.models.fields.CharField')(default='/var/mail/vhost/cm.auf.org', max_length=768)),
17 ))
18 db.send_create_signal('messagerie', ['Mailbox'])
19
20
21 def backwards(self, orm):
22 # Deleting model 'Mailbox'
23 db.delete_table('messagerie_mailbox')
24
25
26 models = {
27 'messagerie.auth': {
28 'Meta': {'ordering': "['user']", 'object_name': 'Auth'},
29 'actif': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
30 'expire': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
31 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32 'password': ('django.db.models.fields.CharField', [], {'max_length': '384'}),
33 'source': ('django.db.models.fields.CharField', [], {'default': "'LOCAL'", 'max_length': '192'}),
34 'user': ('django.db.models.fields.CharField', [], {'max_length': '384'})
35 },
36 'messagerie.mailbox': {
37 'Meta': {'object_name': 'Mailbox'},
38 'domain': ('django.db.models.fields.CharField', [], {'default': "'cm.auf.org'", 'max_length': '384'}),
39 'homedir': ('django.db.models.fields.CharField', [], {'default': "'/var/mail/vhost/cm.auf.org'", 'max_length': '768'}),
40 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41 'proprietaire': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['messagerie.Auth']"})
42 }
43 }
44
45 complete_apps = ['messagerie']