diff options
author | Adam Szmigin <smidge@xsco.net> | 2020-08-23 22:24:14 +0100 |
---|---|---|
committer | Adam Szmigin <smidge@xsco.net> | 2020-09-16 22:09:43 +0100 |
commit | e6854c28d633532c9a5061ce0fd1a06d2f59094a (patch) | |
tree | 09c192184557bb0598b11a0d1dfe54ceeb771a3f /src/djinterop/enginelibrary/schema/schema_1_18_0.hpp | |
parent | f14366864b6d66fc69741141acbb4e66b88d9854 (diff) |
Support Engine Prime schema versions up to 1.18.0
* Added a test of reference DB files.
* Test crate and track creation across all supported versions.
* Support for all schema versions seen by EP and SC5000 players.
Diffstat (limited to 'src/djinterop/enginelibrary/schema/schema_1_18_0.hpp')
-rw-r--r-- | src/djinterop/enginelibrary/schema/schema_1_18_0.hpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/djinterop/enginelibrary/schema/schema_1_18_0.hpp b/src/djinterop/enginelibrary/schema/schema_1_18_0.hpp new file mode 100644 index 0000000..3ab077b --- /dev/null +++ b/src/djinterop/enginelibrary/schema/schema_1_18_0.hpp @@ -0,0 +1,41 @@ +/* + This file is part of libdjinterop. + + libdjinterop is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + libdjinterop is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with libdjinterop. If not, see <http://www.gnu.org/licenses/>. + */ + +#pragma once + +#include <sqlite_modern_cpp.h> +#include <djinterop/enginelibrary/schema/schema_1_17_0.hpp> + +namespace djinterop::enginelibrary::schema +{ +class schema_1_18_0 : public schema_1_17_0 +{ +public: + std::string name() const override { return "EP 1.5.1"; } + +protected: + void verify_track(sqlite::database& db) const override; + void verify_performance_data(sqlite::database& db) const override; + + void verify_music_schema(sqlite::database& db) const override; + void verify_performance_schema(sqlite::database& db) const override; + + void create_music_schema(sqlite::database& db) override; + void create_performance_schema(sqlite::database& db) override; +}; + +} // namespace djinterop::enginelibrary::schema |