| 2066 | } |
| 2067 | |
| 2068 | void PreMigrateTables() { |
| 2069 | if (ExistsColumn("pose_priors", "image_id")) { |
| 2070 | // To be migrated and dropped in PostMigrateTables() after creating the |
| 2071 | // new table in CreateTables(). |
| 2072 | SQLITE3_EXEC(database_, |
| 2073 | "ALTER TABLE pose_priors RENAME TO pose_priors_old;", |
| 2074 | nullptr); |
| 2075 | } |
| 2076 | } |
| 2077 | |
| 2078 | void PostMigrateTables() { |
| 2079 | auto maybe_add_two_view_geometries_blob_column = |