Skip to content

Commit

Permalink
Hue erroneously included inappropriate database migration scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Zeyliger committed Jun 29, 2010
1 parent 37e69db commit dfe87a0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 390 deletions.
30 changes: 0 additions & 30 deletions desktop/core/src/desktop/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,6 @@
class Migration(SchemaMigration):

def forwards(self, orm):

# Adding model 'UserProfile'
try:
db.create_table('desktop_userprofile', (
('login_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], unique=True)),
))
except:
logging.warning("Initial db creation being skipped, likely because table already exists.", exc_info=True)
return

db.send_create_signal('desktop', ['UserProfile'])

if not db.dry_run:
for user in orm['auth.User'].objects.all():
profile = orm.UserProfile()
profile.user = user
profile.save()

# Adding model 'UserPreferences'
db.create_table('desktop_userpreferences', (
('value', self.gf('django.db.models.fields.TextField')(max_length=4096)),
Expand All @@ -53,10 +33,6 @@ def forwards(self, orm):


def backwards(self, orm):

# Deleting model 'UserProfile'
db.delete_table('desktop_userprofile')

# Deleting model 'UserPreferences'
db.delete_table('desktop_userpreferences')

Expand Down Expand Up @@ -105,12 +81,6 @@ def backwards(self, orm):
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
'value': ('django.db.models.fields.TextField', [], {'max_length': '4096'})
},
'desktop.userprofile': {
'Meta': {'object_name': 'UserProfile'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'login_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'})
}
}

complete_apps = ['desktop']
101 changes: 0 additions & 101 deletions desktop/core/src/desktop/migrations/0002_add_groups_and_homedirs.py

This file was deleted.

138 changes: 0 additions & 138 deletions desktop/core/src/desktop/migrations/0003_group_permissions.py

This file was deleted.

Loading

0 comments on commit dfe87a0

Please sign in to comment.