~ltp-devs/loco-team-portal/0.2

« back to all changes in this revision

Viewing changes to loco_directory/teams/migrations/0010_add_photos_feed_fields.py

  • Committer: Michael Hall
  • Author(s): Daniel Holbach
  • Date: 2010-10-07 12:18:15 UTC
  • mfrom: (305.2.6 loco-directory.582354)
  • Revision ID: mhall119@gmail.com-20101007121815-o7oqiu9yprh1u45r
Team Merge functionality

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
class Migration:
7
7
    
8
8
    def forwards(self, orm):
9
 
        
 
9
        db.current_orm.models['teams'] = db.current_orm.models['teams.team']
10
10
        # Adding field 'Team.picasa_id'
11
11
        db.add_column('teams', 'picasa_id', orm['teams.team:picasa_id'])
12
12
        
16
16
    
17
17
    
18
18
    def backwards(self, orm):
19
 
        
 
19
        db.current_orm.models['teams'] = db.current_orm.models['teams.team']
20
20
        # Deleting field 'Team.picasa_id'
21
21
        db.delete_column('teams', 'picasa_id')
22
22