Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit cd50eb3

Browse files
author
anoack
committed
ENGINE=MyISAM re #2793
git-svn-id: svn://develop.studip.de/studip/trunk@25949 c5b85792-5220-0410-ad23-ed5b6b8ad999
1 parent b0e4bcc commit cd50eb3

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

db/migrations/104_setup_cronjobs.php

+23-23
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function up()
1616
`execution_count` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
1717
`assigned_count` INT(11) UNSIGNED NOT NULL DEFAULT 0,
1818
PRIMARY KEY (`task_id`)
19-
)");
19+
) ENGINE=MyISAM");
2020

2121
DBManager::get()->query("CREATE TABLE IF NOT EXISTS `cronjobs_schedules` (
2222
`schedule_id` CHAR(32) NOT NULL DEFAULT '',
@@ -40,7 +40,7 @@ function up()
4040
`chdate` INT(11) UNSIGNED NOT NULL,
4141
PRIMARY KEY (`schedule_id`),
4242
KEY `task_id` (`task_id`)
43-
)");
43+
) ENGINE=MyISAM");
4444

4545
DBManager::get()->query("CREATE TABLE IF NOT EXISTS `cronjobs_logs` (
4646
`log_id` CHAR(32) NOT NULL DEFAULT '',
@@ -52,7 +52,7 @@ function up()
5252
`duration` FLOAT NOT NULL,
5353
PRIMARY KEY (`log_id`),
5454
KEY `schedule_id` (`schedule_id`)
55-
)");
55+
) ENGINE=MyISAM");
5656

5757
// Add config entries
5858
$query = "INSERT IGNORE INTO `config`
@@ -75,7 +75,7 @@ function up()
7575
':type' => 'integer',
7676
':description' => 'Gibt an, nach wievielen Sekunden ein Cronjob als steckengeblieben angesehen wird',
7777
));
78-
78+
7979
// Add default cron tasks and schedules
8080
$default_data = array(
8181
array(
@@ -99,29 +99,29 @@ function up()
9999
'hour' => 1,
100100
'minute' => 7,
101101
),
102-
array(
103-
'filename' => 'lib/cronjobs/check_admission.class.php',
104-
'class' => 'CheckAdmissionJob',
105-
'priority' => 'normal',
106-
'hour' => null,
107-
'minute' => -30,
102+
array(
103+
'filename' => 'lib/cronjobs/check_admission.class.php',
104+
'class' => 'CheckAdmissionJob',
105+
'priority' => 'normal',
106+
'hour' => null,
107+
'minute' => -30,
108108
),
109-
array(
110-
'filename' => 'lib/cronjobs/garbage_collector.class.php',
111-
'class' => 'GarbageCollectorJob',
112-
'priority' => 'normal',
113-
'hour' => 2,
114-
'minute' => 33,
109+
array(
110+
'filename' => 'lib/cronjobs/garbage_collector.class.php',
111+
'class' => 'GarbageCollectorJob',
112+
'priority' => 'normal',
113+
'hour' => 2,
114+
'minute' => 33,
115115
),
116-
array(
117-
'filename' => 'lib/cronjobs/session_gc.class.php',
118-
'class' => 'SessionGcJob',
119-
'priority' => 'normal',
120-
'hour' => 3,
121-
'minute' => 13,
116+
array(
117+
'filename' => 'lib/cronjobs/session_gc.class.php',
118+
'class' => 'SessionGcJob',
119+
'priority' => 'normal',
120+
'hour' => 3,
121+
'minute' => 13,
122122
),
123123
);
124-
124+
125125
$query = "INSERT IGNORE INTO `cronjobs_tasks`
126126
(`task_id`, `filename`, `class`, `active`)
127127
VALUES (:task_id, :filename, :class, 1)";

0 commit comments

Comments
 (0)