commit/galaxy-central: 2 new changesets
2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/ccc640f65971/ changeset: ccc640f65971 user: kellrott date: 2013-01-15 22:57:14 summary: Adding exception catches to database 108 downgrade step to fix failure issue with downgrading postgres database (foreign key rules violated...) affected #: 1 file diff -r 4bd419751ed3e8cc54913fa37389111a0e7faaa9 -r ccc640f65971632ea6de7a94bc01d24954102487 lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py --- a/lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py +++ b/lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py @@ -61,8 +61,15 @@ def downgrade(): metadata.reflect() - ExtendedMetadata_table.drop() - ExtendedMetadataIndex_table.drop() + try: + ExtendedMetadataIndex_table.drop() + except Exception, e: + log.debug( "Dropping 'extended_metadata_index' table failed: %s" % ( str( e ) ) ) + + try: + ExtendedMetadata_table.drop() + except Exception, e: + log.debug( "Dropping 'extended_metadata' table failed: %s" % ( str( e ) ) ) # Drop the Job table's exit_code column. try: https://bitbucket.org/galaxy/galaxy-central/commits/1314572f86e1/ changeset: 1314572f86e1 user: jgoecks date: 2013-01-17 19:52:01 summary: Merged in kellrott/galaxy-central (pull request #109: Fixing database v108 downgrade failure) affected #: 1 file diff -r b14f68fb3e853313d944f934cf279b3517d4a7e6 -r 1314572f86e121aa734ea27a52601fbcdb450278 lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py --- a/lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py +++ b/lib/galaxy/model/migrate/versions/0108_add_extended_metadata.py @@ -61,8 +61,15 @@ def downgrade(): metadata.reflect() - ExtendedMetadata_table.drop() - ExtendedMetadataIndex_table.drop() + try: + ExtendedMetadataIndex_table.drop() + except Exception, e: + log.debug( "Dropping 'extended_metadata_index' table failed: %s" % ( str( e ) ) ) + + try: + ExtendedMetadata_table.drop() + except Exception, e: + log.debug( "Dropping 'extended_metadata' table failed: %s" % ( str( e ) ) ) # Drop the Job table's exit_code column. try: 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