Préparation nouvelle app messagerie
[ongolaboy.git] / projets_django / bacgl_django / messagerie / migrations / 0001_initial.py
... / ...
CommitLineData
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 'Auth'
12 db.create_table('messagerie_auth', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('user', self.gf('django.db.models.fields.CharField')(max_length=384)),
15 ('password', self.gf('django.db.models.fields.CharField')(max_length=384)),
16 ('actif', self.gf('django.db.models.fields.IntegerField')()),
17 ('expire', self.gf('django.db.models.fields.IntegerField')()),
18 ('source', self.gf('django.db.models.fields.CharField')(max_length=192)),
19 ))
20 db.send_create_signal('messagerie', ['Auth'])
21
22
23 def backwards(self, orm):
24 # Deleting model 'Auth'
25 db.delete_table('messagerie_auth')
26
27
28 models = {
29 'messagerie.auth': {
30 'Meta': {'object_name': 'Auth'},
31 'actif': ('django.db.models.fields.IntegerField', [], {}),
32 'expire': ('django.db.models.fields.IntegerField', [], {}),
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'password': ('django.db.models.fields.CharField', [], {'max_length': '384'}),
35 'source': ('django.db.models.fields.CharField', [], {'max_length': '192'}),
36 'user': ('django.db.models.fields.CharField', [], {'max_length': '384'})
37 }
38 }
39
40 complete_apps = ['messagerie']