2018-06-14 00:52:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2018-08-28 03:07:36 +00:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
2018-06-14 00:52:42 +00:00
|
|
|
|
|
|
|
class AddSoftDeletesToModels extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::table('avatars', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('likes', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('media', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('mentions', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('notifications', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('profiles', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('statuses', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
|
|
|
|
Schema::table('users', function ($table) {
|
|
|
|
$table->softDeletes();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|