mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Change back the way we guess the public group (as per Greg) and add a
deleted column to Group so groups can be undeleted. ALTER TABLE galaxy_group ADD COLUMN deleted BOOLEAN;
This commit is contained in:
@@ -142,7 +142,7 @@ class Group( object ):
|
||||
def guess_public_group( cls ):
|
||||
# TODO, Nate: Make sure this method is functionally correct.
|
||||
#retrieve from database and store public group id, assume first created group is public
|
||||
cls.set_public_group( Group.select_by( name = 'public' ) )
|
||||
cls.set_public_group( Group.select( order_by = Group.table.c.create_time )[0] )
|
||||
|
||||
class UserGroupAssociation( object ):
|
||||
def __init__( self, user, group ):
|
||||
|
||||
@@ -120,7 +120,8 @@ Group.table = Table( "galaxy_group", metadata,
|
||||
Column( "create_time", DateTime, default=now ),
|
||||
Column( "update_time", DateTime, default=now, onupdate=now ),
|
||||
Column( "name", TEXT ),
|
||||
Column( "priority", Integer ) )
|
||||
Column( "priority", Integer ),
|
||||
Column( "deleted", Boolean, index=True, default=False ) )
|
||||
|
||||
UserGroupAssociation.table = Table( "user_group_association", metadata,
|
||||
Column( "id", Integer, primary_key=True ),
|
||||
|
||||
Reference in New Issue
Block a user