File: UPGRADE.txt

package info (click to toggle)
libchado-perl 1.31-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 44,716 kB
  • sloc: sql: 282,721; xml: 192,553; perl: 25,524; sh: 102; python: 73; makefile: 57
file content (33 lines) | stat: -rw-r--r-- 1,291 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
For the most up to date version of this document, please also see

  http://gmod.org/wiki/Updating_Chado

As of Chado version 1.2, the Chado software distribution comes with a tool
to upgrade the Chado schema from an old version (1.0 or newer) to a new one. 
This tool, gmod_update_chado.pl, will get installed with other scripts when you 
execute "make install" and depends on another tool, gmod_chado_properties.pl,
which determines the version of the current Chado database and is also
installed when you install Chado.

Since this is a new tool, I strongly suggest you back up your database before
trying to upgrade via this method!  You have been warned! :-)

To use the updater, you can start the installation like you normally would:

  perl Makefile.PL
  make
  sudo make install

and then, rather than doing the next step (make load_schema) which would wipe
out the current database, do

  make update

which will (hopefully) do the updating for you.  Note that if you modified
the schema after you installed Chado the last time, this update may fail.
Please watch the output from the PostgreSQL server to look for "ERROR" 
statements.

If you experience problems with this updating protocol, please send comments,
questions and issue reports to gmod-schema@lists.sourceforge.net.