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