mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
no message
This commit is contained in:
parent
b0d83f7858
commit
a925102881
@ -894,6 +894,9 @@ class Base
|
|||||||
*/
|
*/
|
||||||
public static function arrayRetainInt($array, $reInt = false)
|
public static function arrayRetainInt($array, $reInt = false)
|
||||||
{
|
{
|
||||||
|
if (!is_array($array)) {
|
||||||
|
return $array;
|
||||||
|
}
|
||||||
foreach ($array as $k => $v) {
|
foreach ($array as $k => $v) {
|
||||||
if (!is_numeric($v)) {
|
if (!is_numeric($v)) {
|
||||||
unset($array[$k]);
|
unset($array[$k]);
|
||||||
|
|||||||
@ -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();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user