GNOME Bugzilla – Bug 694926
Get rid of obsolete flags column.
Last modified: 2013-03-06 12:40:19 UTC
There is a flags column in object table. It was used by MediaExport's DBus service, but it is gone since 0.17.7.
Created attachment 237698 [details] [review] Removes flags column. That patch is made against master + patch from bug 683926.
Comment on attachment 237698 [details] [review] Removes flags column. Ignore the bug for now. I quickly wrote it, but actually forgot to test it.
To read before making the patch: http://www.sqlite.org/faq.html#q11 Seems nowhere to be as simple as it could be. Hmpf.
Created attachment 237982 [details] [review] Removes flags column. v2 Now, current patch removes all indices and triggers related to object table, recreates it without flag column, readds triggers and indices and adds the is_guarded column. Maybe it could be done better, but my SQL skills are rusty at best. The patch also removes related, now unused, functions and parameters. My only concern is about using SQL strings from SQL factory as they may change in future. That could make in future upgrade path different from the one in time of writing this patch.
Created attachment 237991 [details] [review] Removes flags column. v3 It's the same as previous one, but just rebased against current master as there were some conflicts.
(In reply to comment #4) > Created an attachment (id=237982) [details] [review] > Removes flags column. v2 > > Now, current patch removes all indices and triggers related to object table, > recreates it without flag column, readds triggers and indices and adds the > is_guarded column. Maybe it could be done better, but my SQL skills are rusty > at best. > > The patch also removes related, now unused, functions and parameters. > > My only concern is about using SQL strings from SQL factory as they may change > in future. That could make in future upgrade path different from the one in > time of writing this patch. That shouldn't matter IMHO.