invoiceninja/database/migrations/2020_11_15_203755_soft_delete_paymentables.php

31 lines
548 B
PHP
Raw Normal View History

2020-11-16 08:23:20 +11:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class SoftDeletePaymentables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2020-11-25 15:19:52 +01:00
Schema::table('paymentables', function (Blueprint $table) {
2020-11-16 08:23:20 +11:00
$table->softDeletes('deleted_at', 6);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}