umeshksingla at macports.org
Wed Jun 14 03:48:21 UTC 2017
For testing it should be enough to just modify the registry.db locally
> as you need it. Once you reach a stable schema, you will have to add
> modifications to the registry schema at two places.
> 1) The initial database schema for new installations is defined here:
> 2) The metadata table in registry.db has a row with key='version', where
> value holds the schema version. The code to update from one schema
> version to the next is here:
Thanks Rainer for this. This is really useful. I had doubts on how often
cregistry/sql.c file gets updated or whether this is the one. The name
sql.c seems to be so OS core file. So, I can just add the new tables here?
Also, new tables means adding them in update_db() too, just like it is the
case with existing port or portgroup tables?
Forgive me for asking almost everything.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-dev