root / snf-app / synnefo / ui / userdata / migrations / 0001_initial.py @ 483c9197
History | View | Annotate | Download (3 kB)
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 'PublicKeyPair'
|
12 |
db.create_table('userdata_publickeypair', (
|
13 |
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
14 |
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['db.SynnefoUser'])), |
15 |
('name', self.gf('django.db.models.fields.CharField')(max_length=255)), |
16 |
('content', self.gf('django.db.models.fields.TextField')()), |
17 |
)) |
18 |
db.send_create_signal('userdata', ['PublicKeyPair']) |
19 |
|
20 |
|
21 |
def backwards(self, orm): |
22 |
|
23 |
# Deleting model 'PublicKeyPair'
|
24 |
db.delete_table('userdata_publickeypair')
|
25 |
|
26 |
|
27 |
models = { |
28 |
'db.synnefouser': {
|
29 |
'Meta': {'object_name': 'SynnefoUser'}, |
30 |
'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), |
31 |
'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}), |
32 |
'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}), |
33 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
34 |
'credit': ('django.db.models.fields.IntegerField', [], {}), |
35 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
36 |
'max_invitations': ('django.db.models.fields.IntegerField', [], {'null': 'True'}), |
37 |
'name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), |
38 |
'realname': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'}), |
39 |
'state': ('django.db.models.fields.CharField', [], {'default': "'ACTIVE'", 'max_length': '30'}), |
40 |
'tmp_auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), |
41 |
'tmp_auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}), |
42 |
'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}), |
43 |
'uniq': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}), |
44 |
'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}) |
45 |
}, |
46 |
'userdata.publickeypair': {
|
47 |
'Meta': {'object_name': 'PublicKeyPair'}, |
48 |
'content': ('django.db.models.fields.TextField', [], {}), |
49 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
50 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
51 |
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['db.SynnefoUser']"}) |
52 |
} |
53 |
} |
54 |
|
55 |
complete_apps = ['userdata']
|