Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0027_auto__del_field_astakosuser_provider__del_field_astakosuser_third_part.py @ 3dfb68fe

History | View | Annotate | Download (22 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
        # Deleting field 'AstakosUser.provider'
12
        db.delete_column('im_astakosuser', 'provider')
13

    
14
        # Deleting field 'AstakosUser.third_party_identifier'
15
        db.delete_column('im_astakosuser', 'third_party_identifier')
16

    
17

    
18
    def backwards(self, orm):
19
        
20
        # Adding field 'AstakosUser.provider'
21
        db.add_column('im_astakosuser', 'provider', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True), keep_default=False)
22

    
23
        # Adding field 'AstakosUser.third_party_identifier'
24
        db.add_column('im_astakosuser', 'third_party_identifier', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True), keep_default=False)
25

    
26

    
27
    models = {
28
        'auth.group': {
29
            'Meta': {'object_name': 'Group'},
30
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
32
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
33
        },
34
        'auth.permission': {
35
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
36
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
37
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
38
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
40
        },
41
        'auth.user': {
42
            'Meta': {'object_name': 'User'},
43
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
44
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
45
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
46
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
47
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
49
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
50
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
51
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
52
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
53
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
54
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
55
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
56
        },
57
        'contenttypes.contenttype': {
58
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
59
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
62
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
63
        },
64
        'im.additionalmail': {
65
            'Meta': {'object_name': 'AdditionalMail'},
66
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
67
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
69
        },
70
        'im.approvalterms': {
71
            'Meta': {'object_name': 'ApprovalTerms'},
72
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
73
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74
            'location': ('django.db.models.fields.CharField', [], {'max_length': '255'})
75
        },
76
        'im.astakosuser': {
77
            'Meta': {'object_name': 'AstakosUser', '_ormbases': ['auth.User']},
78
            'activation_sent': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
79
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
80
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
81
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
82
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
83
            'date_signed_terms': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
84
            'disturbed_quota': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
85
            'email_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86
            'has_credits': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
87
            'has_signed_terms': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'invitations': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
89
            'is_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            'level': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
91
            'policy': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.AstakosUserQuota']", 'symmetrical': 'False'}),
92
            'updated': ('django.db.models.fields.DateTimeField', [], {}),
93
            'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
94
            'uuid': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True'})
95
        },
96
        'im.astakosuserauthprovider': {
97
            'Meta': {'ordering': "('module', 'created')", 'unique_together': "(('identifier', 'module', 'user'),)", 'object_name': 'AstakosUserAuthProvider'},
98
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
99
            'affiliation': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
100
            'auth_backend': ('django.db.models.fields.CharField', [], {'default': "'astakos'", 'max_length': '255'}),
101
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
102
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
103
            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
104
            'info_data': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
105
            'module': ('django.db.models.fields.CharField', [], {'default': "'local'", 'max_length': '255'}),
106
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_providers'", 'to': "orm['im.AstakosUser']"})
107
        },
108
        'im.astakosuserquota': {
109
            'Meta': {'unique_together': "(('resource', 'user'),)", 'object_name': 'AstakosUserQuota'},
110
            'capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'max_digits': '38', 'decimal_places': '0'}),
111
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"}),
113
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
114
        },
115
        'im.authproviderpolicyprofile': {
116
            'Meta': {'ordering': "['priority']", 'object_name': 'AuthProviderPolicyProfile'},
117
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
118
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['auth.Group']"}),
119
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
120
            'is_exclusive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
122
            'policy_add': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
123
            'policy_automoderate': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
124
            'policy_create': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
125
            'policy_limit': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
126
            'policy_login': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
127
            'policy_remove': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
128
            'policy_required': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
129
            'policy_switch': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
130
            'priority': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
131
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
132
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['im.AstakosUser']"})
133
        },
134
        'im.chain': {
135
            'Meta': {'object_name': 'Chain'},
136
            'chain': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
137
        },
138
        'im.emailchange': {
139
            'Meta': {'object_name': 'EmailChange'},
140
            'activation_key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'db_index': 'True'}),
141
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142
            'new_email_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
143
            'requested_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
144
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'emailchanges'", 'unique': 'True', 'to': "orm['im.AstakosUser']"})
145
        },
146
        'im.invitation': {
147
            'Meta': {'object_name': 'Invitation'},
148
            'code': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True'}),
149
            'consumed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
150
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
151
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152
            'inviter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invitations_sent'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
153
            'is_consumed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
154
            'realname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
155
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
156
        },
157
        'im.pendingthirdpartyuser': {
158
            'Meta': {'unique_together': "(('provider', 'third_party_identifier'),)", 'object_name': 'PendingThirdPartyUser'},
159
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
160
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
161
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
162
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
163
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
164
            'info': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
165
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
166
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
167
            'third_party_identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
168
            'token': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
169
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
170
        },
171
        'im.project': {
172
            'Meta': {'object_name': 'Project'},
173
            'application': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'project'", 'unique': 'True', 'to': "orm['im.ProjectApplication']"}),
174
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
175
            'deactivation_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
176
            'deactivation_reason': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
177
            'id': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'chained_project'", 'unique': 'True', 'primary_key': 'True', 'db_column': "'id'", 'to': "orm['im.Chain']"}),
178
            'last_approval_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
179
            'members': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.AstakosUser']", 'through': "orm['im.ProjectMembership']", 'symmetrical': 'False'}),
180
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True', 'null': 'True', 'db_index': 'True'}),
181
            'state': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_index': 'True'})
182
        },
183
        'im.projectapplication': {
184
            'Meta': {'unique_together': "(('chain', 'id'),)", 'object_name': 'ProjectApplication'},
185
            'applicant': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_applied'", 'to': "orm['im.AstakosUser']"}),
186
            'chain': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'chained_apps'", 'db_column': "'chain'", 'to': "orm['im.Chain']"}),
187
            'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
188
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
189
            'end_date': ('django.db.models.fields.DateTimeField', [], {}),
190
            'homepage': ('django.db.models.fields.URLField', [], {'max_length': '255', 'null': 'True'}),
191
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
192
            'issue_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
193
            'limit_on_members_number': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}),
194
            'member_join_policy': ('django.db.models.fields.IntegerField', [], {}),
195
            'member_leave_policy': ('django.db.models.fields.IntegerField', [], {}),
196
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
197
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_owned'", 'to': "orm['im.AstakosUser']"}),
198
            'precursor_application': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.ProjectApplication']", 'null': 'True', 'blank': 'True'}),
199
            'resource_grants': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.ProjectResourceGrant']", 'blank': 'True'}),
200
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
201
            'response_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
202
            'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
203
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'})
204
        },
205
        'im.projectmembership': {
206
            'Meta': {'unique_together': "(('person', 'project'),)", 'object_name': 'ProjectMembership'},
207
            'acceptance_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'db_index': 'True'}),
208
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
209
            'leave_request_date': ('django.db.models.fields.DateField', [], {'null': 'True'}),
210
            'person': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
211
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Project']"}),
212
            'request_date': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
213
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'})
214
        },
215
        'im.projectmembershiphistory': {
216
            'Meta': {'object_name': 'ProjectMembershipHistory'},
217
            'date': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
218
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
219
            'person': ('django.db.models.fields.BigIntegerField', [], {}),
220
            'project': ('django.db.models.fields.BigIntegerField', [], {}),
221
            'reason': ('django.db.models.fields.IntegerField', [], {}),
222
            'serial': ('django.db.models.fields.BigIntegerField', [], {})
223
        },
224
        'im.projectresourcegrant': {
225
            'Meta': {'unique_together': "(('resource', 'project_application'),)", 'object_name': 'ProjectResourceGrant'},
226
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
227
            'member_capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '0', 'max_digits': '38', 'decimal_places': '0'}),
228
            'project_application': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.ProjectApplication']", 'null': 'True'}),
229
            'project_capacity': ('snf_django.lib.db.fields.IntDecimalField', [], {'null': 'True', 'max_digits': '38', 'decimal_places': '0'}),
230
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"})
231
        },
232
        'im.resource': {
233
            'Meta': {'object_name': 'Resource'},
234
            'desc': ('django.db.models.fields.TextField', [], {'null': 'True'}),
235
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
236
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
237
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Service']"}),
238
            'unit': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
239
            'uplimit': ('snf_django.lib.db.fields.IntDecimalField', [], {'default': '0', 'max_digits': '38', 'decimal_places': '0'})
240
        },
241
        'im.serial': {
242
            'Meta': {'object_name': 'Serial'},
243
            'serial': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
244
        },
245
        'im.service': {
246
            'Meta': {'object_name': 'Service'},
247
            'api_url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
248
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True', 'blank': 'True'}),
249
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
250
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
251
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
252
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
253
            'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'})
254
        },
255
        'im.sessioncatalog': {
256
            'Meta': {'object_name': 'SessionCatalog'},
257
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
258
            'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
259
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sessions'", 'null': 'True', 'to': "orm['im.AstakosUser']"})
260
        },
261
        'im.usersetting': {
262
            'Meta': {'unique_together': "(('user', 'setting'),)", 'object_name': 'UserSetting'},
263
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
264
            'setting': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
265
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
266
            'value': ('django.db.models.fields.IntegerField', [], {})
267
        }
268
    }
269

    
270
    complete_apps = ['im']