forked from openlp/openlp
Clean up migration database tables
This commit is contained in:
parent
d1b9b5b218
commit
c77cbb0aa1
@ -117,8 +117,8 @@ class MigrateSongs():
|
|||||||
|
|
||||||
def v_1_9_0(self, database):
|
def v_1_9_0(self, database):
|
||||||
self.display.output(u'Migration 1.9.0 Started for ' + database)
|
self.display.output(u'Migration 1.9.0 Started for ' + database)
|
||||||
self._v1_9_0_old(database)
|
#self._v1_9_0_old(database)
|
||||||
self._v1_9_0_new(database)
|
#self._v1_9_0_new(database)
|
||||||
self._v1_9_0_cleanup(database)
|
self._v1_9_0_cleanup(database)
|
||||||
self.display.output(u'Migration 1.9.0 Finished for ' + database)
|
self.display.output(u'Migration 1.9.0 Finished for ' + database)
|
||||||
|
|
||||||
@ -175,3 +175,12 @@ class MigrateSongs():
|
|||||||
'(u', ''), ')', ''), '{', ''), '}',''),'?','')
|
'(u', ''), ')', ''), '{', ''), '}',''),'?','')
|
||||||
;""")
|
;""")
|
||||||
conn.commit()
|
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()
|
||||||
|
@ -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'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'song_books_id',song_books_table.c.id)
|
||||||
Index(u'songs_id',songs_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'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_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)
|
Index(u'authors_songs_song',authors_songs_table.c.song_id, authors_songs_table.c.author_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user