]> git.donarmstrong.com Git - debbugs.git/blob - sql/README.mdwn
include function in instalsql for bin ver/src pkg linking
[debbugs.git] / sql / README.mdwn
1 # Developer specific instructions #
2 ## Upgrading Schema ##
3
4 To make changes to the database schema:
5
6 1. Make whatever changes are appropriate to the SQL directly in the
7    debbugs_schema.sql file, and make corresponding changes to the
8    database (or dump the entire database and otherwise make the
9    changes).
10     + If you add non-unique indexes, you will need to add an sqlt_deploy_hook
11       (or edit an exist one) to add the index
12 2. Run `./sql/dbicdump_command.sh` to update the DBIx::Class classes which are
13    under Debbugs::DB if you made changes to the database directly
14 3. Increment the version of Debbugs::DB;
15
16 Steps 1 and 2 can alternatively be performed by changing the
17 DBIx::Class classes directly if that is desired.