Skip to content

Commit

Permalink
Add explicit schema versioning table
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Aug 21, 2024
1 parent 2497d20 commit f025b75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public void Run()
/// <param name="sqlite"></param>
private void createSchema(SqliteConnection sqlite)
{
sqlite.Execute("CREATE TABLE `schema_version` (`number` smallint unsigned NOT NULL)");
sqlite.Execute("INSERT INTO `schema_version` (`number`) VALUES (2)");

sqlite.Execute(@"CREATE TABLE `osu_beatmapsets` (
`beatmapset_id` mediumint unsigned NOT NULL,
`submit_date` timestamp NOT NULL DEFAULT NULL,
Expand Down

0 comments on commit f025b75

Please sign in to comment.