From a9251028815d627e60baa0c5c1a796f9e9c5d162 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 2 Dec 2022 09:29:08 +0800 Subject: [PATCH] no message --- app/Module/Base.php | 3 ++ ..._add_project_task_push_logs_deleted_at.php | 34 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 database/migrations/2022_12_02_092357_add_project_task_push_logs_deleted_at.php diff --git a/app/Module/Base.php b/app/Module/Base.php index 149b65d52..63f8743c9 100755 --- a/app/Module/Base.php +++ b/app/Module/Base.php @@ -894,6 +894,9 @@ class Base */ public static function arrayRetainInt($array, $reInt = false) { + if (!is_array($array)) { + return $array; + } foreach ($array as $k => $v) { if (!is_numeric($v)) { unset($array[$k]); diff --git a/database/migrations/2022_12_02_092357_add_project_task_push_logs_deleted_at.php b/database/migrations/2022_12_02_092357_add_project_task_push_logs_deleted_at.php new file mode 100644 index 000000000..314c1cda1 --- /dev/null +++ b/database/migrations/2022_12_02_092357_add_project_task_push_logs_deleted_at.php @@ -0,0 +1,34 @@ +softDeletes(); + } + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('project_task_push_logs', function (Blueprint $table) { + $table->dropSoftDeletes(); + }); + } +}