Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit bbe85af

Browse files
author
Michael Grauer
committed
refs #301 Changed postupgrade code to mysql specific.
These postugrade table changes will break a build with a pgsql.ini config file since there are no pgsql database tables to alter, so I moved the table changes to the mysql specific upgrade method. These table changes can be moved back to the postupgrade method after pgsql support is added.
1 parent 9bde163 commit bbe85af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

modules/remoteprocessing/database/upgrade/1.0.1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public function preUpgrade()
1919

2020
public function mysql()
2121
{
22-
22+
$sql = "ALTER TABLE remoteprocessing_job ADD creator_id bigint(20)";
23+
$this->db->query($sql);
2324
}
2425

2526
public function pgsql()
@@ -29,7 +30,6 @@ public function pgsql()
2930

3031
public function postUpgrade()
3132
{
32-
$this->addTableField('remoteprocessing_job', 'creator_id', 'bigint(20)', 'bigint', false);
3333
}
3434
}
3535
?>

modules/scheduler/database/upgrade/1.0.3.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ public function preUpgrade()
99

1010
public function mysql()
1111
{
12+
$sql = "ALTER TABLE scheduler_job ADD creator_id bigint(20)";
13+
$this->db->query($sql);
1214
}
1315

1416

1517
public function postUpgrade()
1618
{
17-
$this->addTableField('scheduler_job', 'creator_id', 'bigint(20)', 'bigint', false);
1819
}
1920
}
2021
?>

0 commit comments

Comments
 (0)