You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -237,7 +237,7 @@ function syslog_check_upgrade() {
237
237
print__('Syslog 2.0 Requires an Entire Reinstall. Please uninstall Syslog and Remove all Data before Installing. Migration is possible, but you must plan this in advance. No automatic migration is supported.', 'syslog') . "\n";
238
238
exit;
239
239
} elseif ($old == 2) {
240
-
db_execute('ALTER TABLE syslog_statistics
240
+
syslog_db_execute('ALTER TABLE syslog_statistics
241
241
ADD COLUMN id BIGINT UNSIGNED auto_increment FIRST,
242
242
DROP PRIMARY KEY,
243
243
ADD PRIMARY KEY(id),
@@ -252,24 +252,24 @@ function syslog_check_upgrade() {
252
252
webpage='" . $version['homepage'] . "'
253
253
WHERE directory='" . $version['name'] . "' ");
254
254
255
-
if (!db_column_exists('syslog_alert', 'hash')) {
256
-
db_add_column('syslog_alert', array(
255
+
if (!syslog_db_column_exists('syslog_alert', 'hash')) {
256
+
syslog_db_add_column('syslog_alert', array(
257
257
'name' => 'hash',
258
258
'type' => 'varchar(32)',
259
259
'NULL' => false,
260
260
'default' => '',
261
261
'after' => 'id')
262
262
);
263
263
264
-
db_add_column('syslog_remove', array(
264
+
syslog_db_add_column('syslog_remove', array(
265
265
'name' => 'hash',
266
266
'type' => 'varchar(32)',
267
267
'NULL' => false,
268
268
'default' => '',
269
269
'after' => 'id')
270
270
);
271
271
272
-
db_add_column('syslog_reports', array(
272
+
syslog_db_add_column('syslog_reports', array(
273
273
'name' => 'hash',
274
274
'type' => 'varchar(32)',
275
275
'NULL' => false,
@@ -278,8 +278,8 @@ function syslog_check_upgrade() {
278
278
);
279
279
}
280
280
281
-
if (db_column_exists('syslog_incoming', 'date')) {
282
-
db_execute("ALTER TABLE syslog_incoming
281
+
if (syslog_db_column_exists('syslog_incoming', 'date')) {
0 commit comments