More work on ordering
This commit is contained in:
@@ -30,6 +30,6 @@ class CreateSiteDetails extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('site_details');
|
||||
Schema::dropIfExists('site_details');
|
||||
}
|
||||
}
|
||||
|
38
database/migrations/2018_08_10_115648_service_add_status.php
Normal file
38
database/migrations/2018_08_10_115648_service_add_status.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class ServiceAddStatus extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('ab_service', function (Blueprint $table) {
|
||||
$table->integer('orderby_id')->unsigned()->nullable();
|
||||
$table->string('order_status')->nullable();
|
||||
$table->json('order_info')->nullable();
|
||||
$table->foreign('orderby_id')->references('id')->on('users');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('ab_service', function (Blueprint $table) {
|
||||
$table->dropForeign(['orderby_id']);
|
||||
$table->dropColumn('orderby_id');
|
||||
$table->dropColumn('order_status');
|
||||
$table->dropColumn('order_info');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user