Pārlūkot izejas kodu

! Scheduled task name too long...thanks PostgreSQL

emanuele 12 gadi atpakaļ
vecāks
revīzija
70d8bc779e

+ 1 - 1
Sources/ScheduledTasks.php

@@ -1645,7 +1645,7 @@ function scheduled_paid_subscriptions()
  * Check for un-posted attachments is something we can do once in a while :P
  * This function uses opendir cycling through all the attachments
  */
-function scheduled_remove_old_temp_attachments()
+function scheduled_remove_temp_attachments()
 {
 	global $modSettings;
 

+ 1 - 1
other/install_2-1_mysql.sql

@@ -1614,7 +1614,7 @@ VALUES
 	(8, 0, 0, 1, 'd', 1, 'birthdayemails'),
 	(9, 0, 0, 1, 'w', 0, 'weekly_maintenance'),
 	(10, 0, 120, 1, 'd', 1, 'paid_subscriptions'),
-	(11, 0, 120, 1, 'd', 1, 'remove_old_temp_attachments');
+	(11, 0, 120, 1, 'd', 1, 'remove_temp_attachments');
 
 # --------------------------------------------------------
 

+ 1 - 1
other/install_2-1_postgresql.sql

@@ -2105,7 +2105,7 @@ INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_r
 INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (8, 0, 0, 1, 'd', 1, 'birthdayemails');
 INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (9, 0, 0, 1, 'w', 0, 'weekly_maintenance');
 INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (10, 0, 120, 1, 'd', 1, 'paid_subscriptions');
-INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (11, 0, 120, 1, 'd', 1, 'remove_old_temp_attachments');
+INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (11, 0, 120, 1, 'd', 1, 'remove_temp_attachments');
 
 # --------------------------------------------------------
 

+ 1 - 1
other/install_2-1_sqlite.sql

@@ -1756,7 +1756,7 @@ INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_r
 INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (8, 0, 0, 1, 'd', 1, 'birthdayemails');
 INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (9, 0, 0, 1, 'w', 0, 'weekly_maintenance');
 INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (10, 0, 120, 1, 'd', 1, 'paid_subscriptions');
-INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (11, 0, 120, 1, 'd', 1, 'remove_old_temp_attachments');
+INSERT INTO {$db_prefix}scheduled_tasks	(id_task, next_time, time_offset, time_regularity, time_unit, disabled, task) VALUES (11, 0, 120, 1, 'd', 1, 'remove_temp_attachments');
 COMMIT;
 
 # --------------------------------------------------------

+ 1 - 1
other/upgrade_2-1_mysql.sql

@@ -137,5 +137,5 @@ ADD COLUMN credits varchar(255) NOT NULL DEFAULT '';
 INSERT INTO {$db_prefix}scheduled_tasks
 	(next_time, time_offset, time_regularity, time_unit, disabled, task)
 VALUES
-	(0, 120, 1, 'd', 0, 'remove_old_temp_attachments');
+	(0, 120, 1, 'd', 0, 'remove_temp_attachments');
 ---#

+ 1 - 1
other/upgrade_2-1_postgresql.sql

@@ -141,5 +141,5 @@ ADD COLUMN credits varchar(255) NOT NULL DEFAULT '';
 INSERT INTO {$db_prefix}scheduled_tasks
 	(next_time, time_offset, time_regularity, time_unit, disabled, task)
 VALUES
-	(0, 120, 1, 'd', 0, 'remove_old_temp_attachments');
+	(0, 120, 1, 'd', 0, 'remove_temp_attachments');
 ---#

+ 1 - 1
other/upgrade_2-1_sqlite.sql

@@ -137,5 +137,5 @@ ADD COLUMN credits varchar(255) NOT NULL DEFAULT '';
 INSERT INTO {$db_prefix}scheduled_tasks
 	(next_time, time_offset, time_regularity, time_unit, disabled, task)
 VALUES
-	(0, 120, 1, 'd', 0, 'remove_old_temp_attachments');
+	(0, 120, 1, 'd', 0, 'remove_temp_attachments');
 ---#