Installation du nouveau QBE ici
[auf_rh_dae.git] / src / qbe / django_qbe / migrations / 0001_initial.py
1 # encoding: 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 class Migration(SchemaMigration):
8
9 def forwards(self, orm):
10
11 # Adding model 'SavedQuery'
12 db.create_table('django_qbe_savedquery', (
13 ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
14 ('date_updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
15 ('query_data', self.gf('picklefield.fields.PickledObjectField')()),
16 ('date_created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
17 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
18 ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
19 ))
20 db.send_create_signal('django_qbe', ['SavedQuery'])
21
22
23 def backwards(self, orm):
24
25 # Deleting model 'SavedQuery'
26 db.delete_table('django_qbe_savedquery')
27
28
29 models = {
30 'django_qbe.savedquery': {
31 'Meta': {'object_name': 'SavedQuery'},
32 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
33 'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
34 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
37 'query_data': ('picklefield.fields.PickledObjectField', [], {})
38 }
39 }
40
41 complete_apps = ['django_qbe']