-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Updating the database schema
Janek edited this page Jul 27, 2020
·
1 revision
- Add a new revision to
res/schema.xml
, which is parsed bysrc/database/schemamanager
- Increment the
version
attribute by one from the previous one - Use the
min_compatible
version from the previous revision unless you delete or rename a table or column
- Increment the
- Summarize your changes in the
description
subtag for future reference - Add SQLite statements in the
sql
subtag
- Update
MixxxDB::kRequiredVersion
insrc/database/mixxxdb.cpp
to the new version - Add tests to make sure your additions function as expected :)
Note that, once a revision is upgraded to, changes to it won't be recognized - so if you want to fix something afterwards you either have to change the version a few times or always work with a fresh database. Thus, once a revision is in master, it may not be modified bar extraordinary circumstances.
Mixxx is a free and open-source DJ software.
Manual
Hardware Compatibility
Reporting Bugs
Getting Involved
Contribution Guidelines
Coding Guidelines
Using Git
Developer Guide
Creating Skins
Contributing Mappings
Mixxx Controls
MIDI Scripting
Components JS
HID Scripting