1
0
forked from s421507/eOSP2

Wyjazdy - softdelete, z potwierdzeniem użytkownika

This commit is contained in:
czup 2020-01-24 22:57:27 +01:00
parent 0e9456afcc
commit 8a200c43aa
2 changed files with 5 additions and 40 deletions

View File

@ -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) {
//
});
}
}

View File

@ -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) {
//
});
}
}