Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0048_auto__del_field_project_termination_date__del_field_project_terminatio.py @ c11dc0ce

History | View | Annotate | Download (22.1 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 'Project.termination_date'
12
        db.delete_column('im_project', 'termination_date')
13

    
14
        # Deleting field 'Project.termination_start_date'
15
        db.delete_column('im_project', 'termination_start_date')
16

    
17
        # Adding field 'Project.deactivation_reason'
18
        db.add_column('im_project', 'deactivation_reason', self.gf('django.db.models.fields.CharField')(max_length=255, null=True), keep_default=False)
19

    
20
        # Adding field 'Project.deactivation_start_date'
21
        db.add_column('im_project', 'deactivation_start_date', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
22

    
23
        # Adding field 'Project.deactivation_date'
24
        db.add_column('im_project', 'deactivation_date', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
25

    
26

    
27
    def backwards(self, orm):
28
        
29
        # Adding field 'Project.termination_date'
30
        db.add_column('im_project', 'termination_date', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
31

    
32
        # Adding field 'Project.termination_start_date'
33
        db.add_column('im_project', 'termination_start_date', self.gf('django.db.models.fields.DateTimeField')(null=True), keep_default=False)
34

    
35
        # Deleting field 'Project.deactivation_reason'
36
        db.delete_column('im_project', 'deactivation_reason')
37

    
38
        # Deleting field 'Project.deactivation_start_date'
39
        db.delete_column('im_project', 'deactivation_start_date')
40

    
41
        # Deleting field 'Project.deactivation_date'
42
        db.delete_column('im_project', 'deactivation_date')
43

    
44

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

    
284
    complete_apps = ['im']