no message

This commit is contained in:
kuaifan 2022-12-02 09:29:08 +08:00
parent b0d83f7858
commit a925102881
2 changed files with 37 additions and 0 deletions

View File

@ -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]);

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddProjectTaskPushLogsDeletedAt extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('project_task_push_logs', function (Blueprint $table) {
if (!Schema::hasColumn('project_task_push_logs', 'deleted_at')) {
$table->softDeletes();
}
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('project_task_push_logs', function (Blueprint $table) {
$table->dropSoftDeletes();
});
}
}