forked from s421507/eOSP2
Wyjazdy - softdelete, z potwierdzeniem użytkownika
This commit is contained in:
parent
0e9456afcc
commit
8a200c43aa
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddStatusToVehiclesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('vehicles', function (Blueprint $table) {
|
||||
//
|
||||
$table->integer('status')->default('0');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('vehicles', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class addSoftDeletes_to_vechiles extends Migration
|
||||
class AddSoftDeletesToOperationsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
@ -13,14 +13,10 @@ class addSoftDeletes_to_vechiles extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::table('vehicles', function (Blueprint $table) {
|
||||
//
|
||||
Schema::table('operations', function (Blueprint $table) {
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
@ -29,6 +25,8 @@ class addSoftDeletes_to_vechiles extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('vehicles');
|
||||
Schema::table('operations', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user