Skip to content

Commit

Permalink
Add BEGIN, END to db update
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewol committed Feb 11, 2021
1 parent 990bc72 commit bd07595
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Beatmap/src/MapDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ class MapDatabase_Impl
//alter table.
// if we were on a newer sqlite version the gameflags column could easily be renamed but it will
// instead still exist in the db after this update but will be unused.
m_database.Exec("BEGIN");
m_database.Exec("ALTER TABLE Scores ADD COLUMN gauge_type INTEGER");
m_database.Exec("ALTER TABLE Scores ADD COLUMN auto_flags INTEGER");
m_database.Exec("ALTER TABLE Scores ADD COLUMN gauge_opt INTEGER");
Expand All @@ -406,6 +407,7 @@ class MapDatabase_Impl
progress++;
m_outer.OnDatabaseUpdateProgress.Call(progress, totalScoreCount);
}
m_database.Exec("END");
gotVersion = 18;

}
Expand Down

0 comments on commit bd07595

Please sign in to comment.