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

Commit 1087892

Browse files
author
Jamie Snape
committed
Add missing SQL implementations
1 parent aaf1068 commit 1087892

File tree

21 files changed

+182
-23
lines changed

21 files changed

+182
-23
lines changed

modules/ldap/database/mysql/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

modules/ldap/database/mysql/1.0.0.sql

Whitespace-only changes.

modules/ldap/database/pgsql/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

modules/ldap/database/pgsql/1.0.0.sql

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
CREATE TABLE remoteprocessing_job
3+
(
4+
job_id serial PRIMARY KEY,
5+
os character varying(512) NOT NULL,
6+
condition character varying(512) NOT NULL DEFAULT '',
7+
script text,
8+
params text,
9+
status smallint NOT NULL DEFAULT 0,
10+
expiration_date timestamp without time zone,
11+
creation_date timestamp without time zone,
12+
start_date timestamp without time zone
13+
);
14+
15+
16+
CREATE TABLE remoteprocessing_job2item
17+
(
18+
job_id bigint NOT NULL,
19+
item_id bigint NOT NULL,
20+
type smallint NOT NULL DEFAULT 0
21+
);

modules/remoteprocessing/database/upgrade/1.0.1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function preUpgrade()
2626

2727
public function mysql()
2828
{
29-
$sql = "ALTER TABLE remoteprocessing_job ADD creator_id bigint(20)";
30-
$this->db->query($sql);
29+
$this->db->query("ALTER TABLE remoteprocessing_job ADD COLUMN creator_id bigint(20);");
3130
}
3231

3332
public function pgsql()
3433
{
34+
$this->db->query("ALTER TABLE remoteprocessing_job ADD COLUMN creator_id bigint;");
3535
}
3636

3737
public function postUpgrade()

modules/remoteprocessing/database/upgrade/1.0.2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function preUpgrade()
2626

2727
public function mysql()
2828
{
29-
$sql = "ALTER TABLE remoteprocessing_job ADD name varchar(512)";
30-
$this->db->query($sql);
29+
$this->db->query("ALTER TABLE remoteprocessing_job ADD COLUMN name varchar(512);");
3130
}
3231

3332
public function pgsql()
3433
{
34+
$this->db->query("ALTER TABLE remoteprocessing_job ADD COLUMN name character varying(512);");
3535
}
3636

3737
public function postUpgrade()

modules/remoteprocessing/tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ to_titlecase( ${module_name} module_name_titlecase )
2323
add_subdirectory( controllers )
2424
add_subdirectory( models )
2525

26-
add_midas_mysql_test( ${module_name_titlecase}Api ApiTest.php )
26+
add_midas_test( ${module_name_titlecase}Api ApiTest.php )
2727

2828
add_midas_style_test( Style${module_name_titlecase}AppController ${CMAKE_SOURCE_DIR}/modules/${module_name}/AppController.php )
2929
add_midas_style_test( Style${module_name_titlecase}Constant ${CMAKE_SOURCE_DIR}/modules/${module_name}/constant )

modules/remoteprocessing/tests/controllers/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
# limitations under the License.
1818
#=============================================================================
1919

20-
#add_midas_mysql_test( RemoteprocessingJobController JobControllerTest.php )
21-
#add_midas_mysql_test( RemoteprocessingExecutableController ExecutableControllerTest.php )
22-
add_midas_mysql_test( RemoteprocessingConfigController ConfigControllerTest.php )
20+
#add_midas_test( RemoteprocessingJobController JobControllerTest.php )
21+
#add_midas_test( RemoteprocessingExecutableController ExecutableControllerTest.php )
22+
add_midas_test( RemoteprocessingConfigController ConfigControllerTest.php )

modules/remoteprocessing/tests/models/base/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
# limitations under the License.
1818
#=============================================================================
1919

20-
add_midas_mysql_test( RemoteprocessingJobModel JobModelTest.php )
20+
add_midas_test( RemoteprocessingJobModel JobModelTest.php )

0 commit comments

Comments
 (0)