commit/galaxy-central: greg: Migration script to add a subindex column to the run table.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/b8442c5e90c9/ changeset: r5040:b8442c5e90c9 user: greg date: 2011-02-10 21:29:08 summary: Migration script to add a subindex column to the run table. affected #: 3 files (108 bytes) --- a/lib/galaxy/model/__init__.py Thu Feb 10 13:58:48 2011 -0500 +++ b/lib/galaxy/model/__init__.py Thu Feb 10 15:29:08 2011 -0500 @@ -2050,9 +2050,10 @@ self.external_service = external_service class Run( object ): - def __init__( self, form_definition, form_values ): + def __init__( self, form_definition, form_values, subindex=None ): self.template = form_definition self.info = form_values + self.subindex = subindex class RequestTypeRunAssociation( object ): def __init__( self, request_type, run ): --- a/lib/galaxy/model/mapping.py Thu Feb 10 13:58:48 2011 -0500 +++ b/lib/galaxy/model/mapping.py Thu Feb 10 15:29:08 2011 -0500 @@ -705,7 +705,8 @@ Column( "update_time", DateTime, default=now, onupdate=now ), Column( "form_definition_id", Integer, ForeignKey( "form_definition.id" ), index=True ), Column( "form_values_id", Integer, ForeignKey( "form_values.id" ), index=True ), - Column( "deleted", Boolean, index=True, default=False ) ) + Column( "deleted", Boolean, index=True, default=False ), + Column( "subindex", TrimmedString( 255 ), index=True ) ) RequestTypeRunAssociation.table = Table( "request_type_run_association", metadata, Column( "id", Integer, primary_key=True ), Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket