Improves upgrade script.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 8 Oct 2010 15:47:49 +0000 (17:47 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 8 Oct 2010 15:51:04 +0000 (17:51 +0200)
commitcc9dc1ddd643ad6ff206643ffc1e94559ffd27b2
treebee5db63011cb2df542a6c9ee65fbddbbfba7756
parentddc4c64239397960c7c95aad9153009b986038bb
Improves upgrade script.

- If SOURCE_DATABASE environment variable is defined, the scripts begins
  by creating DATABASE and copying the content of SOURCE_DATABASE in
  DATABASE. This feature will be available for all future upgrade
  scripts that starts with "copy_db".

- Disable failing (and in my point of view unfixable) statements:
  ALTER TABLE payment_transactions ADD UNIQUE KEY fullref (fullref)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
upgrade/1.0.1/13_payments.sql
upgrade/1.0.1/update.sh
upgrade/inc/pervasive.sh