Clean up migration database tables

This commit is contained in:
Tim Bentley 2009-06-24 07:10:13 +01:00
parent d1b9b5b218
commit c77cbb0aa1
2 changed files with 11 additions and 4 deletions

View File

@ -117,8 +117,8 @@ class MigrateSongs():
def v_1_9_0(self, database):
self.display.output(u'Migration 1.9.0 Started for ' + database)
self._v1_9_0_old(database)
self._v1_9_0_new(database)
#self._v1_9_0_old(database)
#self._v1_9_0_new(database)
self._v1_9_0_cleanup(database)
self.display.output(u'Migration 1.9.0 Finished for ' + database)
@ -175,3 +175,12 @@ class MigrateSongs():
'(u', ''), ')', ''), '{', ''), '}',''),'?','')
;""")
conn.commit()
conn.execute(u'drop table authors_temp;')
conn.commit()
conn.execute(u'drop table songs_temp;')
conn.commit()
conn.execute(u'drop table songauthors_temp;')
conn.commit()
conn.execute(u'drop table settings;')
conn.commit()

View File

@ -73,8 +73,6 @@ Index(u'authors_id',authors_table.c.id)
Index(u'authors_display_name_id',authors_table.c.display_name, authors_table.c.id)
Index(u'song_books_id',song_books_table.c.id)
Index(u'songs_id',songs_table.c.id)
Index(u'songs_lyrics_id',songs_table.c.search_lyrics, songs_table.c.id)
Index(u'songs_title_id',songs_table.c.search_title, songs_table.c.id)
Index(u'topics_id',topics_table.c.id)
Index(u'authors_songs_author',authors_songs_table.c.author_id, authors_songs_table.c.song_id)
Index(u'authors_songs_song',authors_songs_table.c.song_id, authors_songs_table.c.author_id)