|
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 |
# Changing field 'Backend.password_hash'
|
|
12 |
db.alter_column('db_backend', 'password_hash', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True))
|
|
13 |
|
|
14 |
|
|
15 |
def backwards(self, orm):
|
|
16 |
|
|
17 |
# Changing field 'Backend.password_hash'
|
|
18 |
db.alter_column('db_backend', 'password_hash', self.gf('django.db.models.fields.CharField')(max_length=64, null=True, blank=True))
|
|
19 |
|
|
20 |
|
|
21 |
models = {
|
|
22 |
'db.backend': {
|
|
23 |
'Meta': {'object_name': 'Backend'},
|
|
24 |
'clustername': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
|
|
25 |
'ctotal': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
|
|
26 |
'dfree': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
|
|
27 |
'drained': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
28 |
'dtotal': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
|
|
29 |
'hash': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
|
|
30 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
31 |
'mfree': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
|
|
32 |
'mtotal': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
|
|
33 |
'offline': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
34 |
'password_hash': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
|
|
35 |
'pinst_cnt': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
|
|
36 |
'port': ('django.db.models.fields.PositiveIntegerField', [], {'default': '5080'}),
|
|
37 |
'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
|
38 |
'username': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'})
|
|
39 |
},
|
|
40 |
'db.backendnetwork': {
|
|
41 |
'Meta': {'object_name': 'BackendNetwork'},
|
|
42 |
'backend': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'networks'", 'to': "orm['db.Backend']"}),
|
|
43 |
'backendjobid': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}),
|
|
44 |
'backendjobstatus': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}),
|
|
45 |
'backendlogmsg': ('django.db.models.fields.TextField', [], {'null': 'True'}),
|
|
46 |
'backendopcode': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}),
|
|
47 |
'backendtime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(1, 1, 1, 0, 0)'}),
|
|
48 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
|
49 |
'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
50 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
51 |
'network': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'backend_networks'", 'to': "orm['db.Network']"}),
|
|
52 |
'operstate': ('django.db.models.fields.CharField', [], {'default': "'PENDING'", 'max_length': '30'}),
|
|
53 |
'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
|
|
54 |
},
|
|
55 |
'db.bridgepool': {
|
|
56 |
'Meta': {'object_name': 'BridgePool'},
|
|
57 |
'available': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
|
|
58 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
59 |
'index': ('django.db.models.fields.IntegerField', [], {'unique': 'True'}),
|
|
60 |
'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'})
|
|
61 |
},
|
|
62 |
'db.flavor': {
|
|
63 |
'Meta': {'unique_together': "(('cpu', 'ram', 'disk', 'disk_template'),)", 'object_name': 'Flavor'},
|
|
64 |
'cpu': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
65 |
'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
66 |
'disk': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
67 |
'disk_template': ('django.db.models.fields.CharField', [], {'default': "'drbd'", 'max_length': '32'}),
|
|
68 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
69 |
'ram': ('django.db.models.fields.IntegerField', [], {'default': '0'})
|
|
70 |
},
|
|
71 |
'db.macprefixpool': {
|
|
72 |
'Meta': {'object_name': 'MacPrefixPool'},
|
|
73 |
'available': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
|
|
74 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
75 |
'index': ('django.db.models.fields.IntegerField', [], {'unique': 'True'}),
|
|
76 |
'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'})
|
|
77 |
},
|
|
78 |
'db.network': {
|
|
79 |
'Meta': {'object_name': 'Network'},
|
|
80 |
'action': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '32', 'null': 'True'}),
|
|
81 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
|
82 |
'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
83 |
'dhcp': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
|
|
84 |
'gateway': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
|
|
85 |
'gateway6': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True'}),
|
|
86 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
87 |
'link': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True'}),
|
|
88 |
'mac_prefix': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
|
|
89 |
'machines': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['db.VirtualMachine']", 'through': "orm['db.NetworkInterface']", 'symmetrical': 'False'}),
|
|
90 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
|
91 |
'public': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
92 |
'reservations': ('django.db.models.fields.TextField', [], {'default': "''"}),
|
|
93 |
'state': ('django.db.models.fields.CharField', [], {'default': "'PENDING'", 'max_length': '32'}),
|
|
94 |
'subnet': ('django.db.models.fields.CharField', [], {'default': "'10.0.0.0/24'", 'max_length': '32'}),
|
|
95 |
'subnet6': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True'}),
|
|
96 |
'type': ('django.db.models.fields.CharField', [], {'default': "'PRIVATE_PHYSICAL_VLAN'", 'max_length': '50'}),
|
|
97 |
'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
|
98 |
'userid': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True'})
|
|
99 |
},
|
|
100 |
'db.networkinterface': {
|
|
101 |
'Meta': {'object_name': 'NetworkInterface'},
|
|
102 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
|
103 |
'dirty': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
104 |
'firewall_profile': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}),
|
|
105 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
106 |
'index': ('django.db.models.fields.IntegerField', [], {}),
|
|
107 |
'ipv4': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True'}),
|
|
108 |
'ipv6': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
|
|
109 |
'mac': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
|
|
110 |
'machine': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nics'", 'to': "orm['db.VirtualMachine']"}),
|
|
111 |
'network': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nics'", 'to': "orm['db.Network']"}),
|
|
112 |
'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
|
|
113 |
},
|
|
114 |
'db.virtualmachine': {
|
|
115 |
'Meta': {'object_name': 'VirtualMachine'},
|
|
116 |
'action': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}),
|
|
117 |
'backend': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'virtual_machines'", 'null': 'True', 'to': "orm['db.Backend']"}),
|
|
118 |
'backend_hash': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True'}),
|
|
119 |
'backendjobid': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}),
|
|
120 |
'backendjobstatus': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}),
|
|
121 |
'backendlogmsg': ('django.db.models.fields.TextField', [], {'null': 'True'}),
|
|
122 |
'backendopcode': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}),
|
|
123 |
'backendtime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(1, 1, 1, 0, 0)'}),
|
|
124 |
'buildpercentage': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
|
125 |
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
|
126 |
'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
127 |
'flavor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['db.Flavor']"}),
|
|
128 |
'hostid': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
129 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
130 |
'imageid': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
131 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
|
|
132 |
'operstate': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True'}),
|
|
133 |
'suspended': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
134 |
'updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
|
135 |
'userid': ('django.db.models.fields.CharField', [], {'max_length': '100'})
|
|
136 |
},
|
|
137 |
'db.virtualmachinemetadata': {
|
|
138 |
'Meta': {'unique_together': "(('meta_key', 'vm'),)", 'object_name': 'VirtualMachineMetadata'},
|
|
139 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
140 |
'meta_key': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
|
|
141 |
'meta_value': ('django.db.models.fields.CharField', [], {'max_length': '500'}),
|
|
142 |
'vm': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'metadata'", 'to': "orm['db.VirtualMachine']"})
|
|
143 |
}
|
|
144 |
}
|
|
145 |
|
|
146 |
complete_apps = ['db']
|