SOURCES: eventum-upgrade.patch - update to r3399
glen
glen at pld-linux.org
Sun Nov 4 17:26:45 CET 2007
Author: glen Date: Sun Nov 4 16:26:45 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- update to r3399
---- Files affected:
SOURCES:
eventum-upgrade.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/eventum-upgrade.patch
diff -u SOURCES/eventum-upgrade.patch:1.1 SOURCES/eventum-upgrade.patch:1.2
--- SOURCES/eventum-upgrade.patch:1.1 Thu Sep 6 11:50:54 2007
+++ SOURCES/eventum-upgrade.patch Sun Nov 4 17:26:40 2007
@@ -1,11 +1,12 @@
--- eventum-r3374/misc/upgrade/v2.0_to_v2.1/database_changes.php~ 2007-09-06 12:10:01.000000000 +0300
+++ eventum-r3374/misc/upgrade/v2.0_to_v2.1/database_changes.php 2007-09-06 12:10:29.649982963 +0300
-@@ -7,8 +7,6 @@
+@@ -7,9 +7,6 @@
$stmts[] = "ALTER TABLE eventum_irc_notice ADD INDEX ino_status (ino_status)";
$stmts[] = "ALTER TABLE eventum_issue_custom_field ADD COLUMN icf_value_integer int(11) NULL DEFAULT NULL";
$stmts[] = "ALTER TABLE eventum_issue_custom_field ADD COLUMN icf_value_date date NULL DEFAULT NULL";
-$stmts[] = "ALTER TABLE eventum_custom_field ADD COLUMN fld_close_form tinyint(1) NOT NULL DEFAULT 0";
-$stmts[] = "ALTER TABLE eventum_custom_field ADD COLUMN fld_close_form_required tinyint(1) NOT NULL DEFAULT 0";
+-$stmts[] = "ALTER TABLE eventum_issue ADD COLUMN iss_customer_contract_id int(11) unsigned AFTER iss_customer_id";
foreach ($stmts as $stmt) {
$stmt = str_replace('eventum_', APP_TABLE_PREFIX, $stmt);
@@ -20,6 +21,27 @@
+
+$stmts[] = "ALTER TABLE eventum_custom_field ADD COLUMN fld_close_form tinyint(1) NOT NULL DEFAULT 0";
+$stmts[] = "ALTER TABLE eventum_custom_field ADD COLUMN fld_close_form_required tinyint(1) NOT NULL DEFAULT 0";
++
++foreach ($stmts as $stmt) {
++ $stmt = str_replace('eventum_', APP_TABLE_PREFIX, $stmt);
++ $res = $GLOBALS["db_api"]->dbh->query($stmt);
++ if (PEAR::isError($res)) {
++ echo "<pre>";var_dump($res);echo "</pre>";
++ exit(1);
++ }
++}
++?>
++done
+--- /dev/null 2006-03-28 14:00:37.000000000 +0300
++++ eventum-r3374/misc/upgrade/v2.0_to_v2.1/database_changes3.php 2007-11-04 17:40:19.385617634 +0200
+@@ -0,0 +1,18 @@
++<?php
++require_once '/usr/share/eventum/htdocs/init.php';
++require_once(APP_INC_PATH . "db_access.php");
++
++$stmts = array();
++
++$stmts[] = "ALTER TABLE eventum_issue ADD COLUMN iss_customer_contract_id int(11) unsigned AFTER iss_customer_id";
+
+foreach ($stmts as $stmt) {
+ $stmt = str_replace('eventum_', APP_TABLE_PREFIX, $stmt);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/eventum-upgrade.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list