1) Add a new revision to res/schema.xml:
<revision version="25" min_compatible="3">
<description>
... description ...
</description>
<sql>
ALTER TABLE cues ADD COLUMN visible INTEGER DEFAULT 1;
</sql>
</revision>
(min_compatible is the version of the schema this is backwards compatible
with -- adding a new column is pretty much always backwards compatible
since older versions of mixxx will just ignore it)
2) Update kRequiredSchemaVersion to 25 in library/trackcollection.cpp
When you run Mixxx, it will alter the table to add a "visible" column that
defaults to 1. Update CueDao to read this column and do stuff based on it.
That should be it!
RJ
On Fri, Oct 9, 2015 at 10:46 AM, Ferran Pujol Camins <
[email protected]> wrote:
> Hi!
>
> I want to add a visible bool to cuepoints. What do I need to change beyond
> cuedao to achieve this?
>
> Cheers.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
------------------------------------------------------------------------------
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel