1 new changeset in galaxy-central:
http://bitbucket.org/galaxy/galaxy-central/changeset/c366f4f232ea/ changeset: r5032:c366f4f232ea user: greg date: 2011-02-09 22:18:56 summary: Optimize the printed output of the 0074... migration script. affected #: 1 file (29 bytes)
--- a/lib/galaxy/model/migrate/versions/0074_add_purged_column_to_library_dataset_table.py Wed Feb 09 15:42:42 2011 -0500 +++ b/lib/galaxy/model/migrate/versions/0074_add_purged_column_to_library_dataset_table.py Wed Feb 09 16:18:56 2011 -0500 @@ -48,10 +48,10 @@ cmd = "SELECT * FROM library_dataset WHERE deleted = %s;" % boolean_true() deleted_lds = db_session.execute( cmd ).fetchall() for row in deleted_lds: - print "Processing LibraryDataset id: ", int( row.id ) cmd = "SELECT * FROM library_dataset_dataset_association WHERE library_dataset_id = %d AND library_dataset_dataset_association.deleted = %s;" % ( int( row.id ), boolean_false() ) active_lddas = db_session.execute( cmd ).fetchall() if not active_lddas: + print "Updating purged column to True for LibraryDataset id : ", int( row.id ) cmd = "UPDATE library_dataset SET purged = %s WHERE id = %d;" % ( boolean_true(), int( row.id ) ) db_session.execute( cmd )
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.