fix: fixed database upgrade bug
This commit is contained in:
@@ -109,11 +109,6 @@ namespace gaseous_tools
|
||||
dbDict.Add("schemaver", i);
|
||||
ExecuteCMD(sql, dbDict);
|
||||
}
|
||||
if (SchemaVer == i)
|
||||
{
|
||||
// no more updates, no point looping anymore
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
25
gaseous-tools/Database/MySQL/gaseous-1001.sql
Normal file
25
gaseous-tools/Database/MySQL/gaseous-1001.sql
Normal file
@@ -0,0 +1,25 @@
|
||||
CREATE
|
||||
ALGORITHM = UNDEFINED
|
||||
DEFINER = `root`@`localhost`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `view_signatures_games` AS
|
||||
SELECT
|
||||
`signatures_games`.`id` AS `id`,
|
||||
`signatures_games`.`name` AS `name`,
|
||||
`signatures_games`.`description` AS `description`,
|
||||
`signatures_games`.`year` AS `year`,
|
||||
`signatures_games`.`publisherid` AS `publisherid`,
|
||||
`signatures_publishers`.`publisher` AS `publisher`,
|
||||
`signatures_games`.`demo` AS `demo`,
|
||||
`signatures_games`.`systemid` AS `platformid`,
|
||||
`signatures_platforms`.`platform` AS `platform`,
|
||||
`signatures_games`.`systemvariant` AS `systemvariant`,
|
||||
`signatures_games`.`video` AS `video`,
|
||||
`signatures_games`.`country` AS `country`,
|
||||
`signatures_games`.`language` AS `language`,
|
||||
`signatures_games`.`copyright` AS `copyright`
|
||||
FROM
|
||||
((`signatures_games`
|
||||
JOIN `signatures_publishers` ON ((`signatures_games`.`publisherid` = `signatures_publishers`.`id`)))
|
||||
JOIN `signatures_platforms` ON ((`signatures_games`.`systemid` = `signatures_platforms`.`id`)));
|
||||
|
@@ -15,6 +15,7 @@
|
||||
<None Remove="Database\" />
|
||||
<None Remove="Database\MySQL\" />
|
||||
<None Remove="Database\MySQL\gaseous-1000.sql" />
|
||||
<None Remove="Database\MySQL\gaseous-1001.sql" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Database\" />
|
||||
@@ -22,5 +23,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Database\MySQL\gaseous-1000.sql" />
|
||||
<EmbeddedResource Include="Database\MySQL\gaseous-1001.sql" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
Reference in New Issue
Block a user