for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* No Namespace
*
* This file is part of the overtrue/laravel-versionable.
* ------------------------------------------------------
* (c) overtrue <[email protected]>
* This source file is subject to the MIT license that is bundled.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
* Class AddDeletedAtToVersions
* @author 安正超 - overtrue
* @github https://github.com/overtrue
class AddDeletedAtToVersions extends Migration
{
* Run the migrations.
* @return void
public function up(): void
Schema::table('versions', static function (Blueprint $table) {
$table->softDeletes();
});
}
* Reverse the migrations.
public function down(): void
$table->dropSoftDeletes();