More work on ordering

This commit is contained in:
Deon George
2018-08-11 15:09:41 +10:00
parent 499d44289e
commit 5373e6b246
33 changed files with 730 additions and 163 deletions

View File

@@ -30,6 +30,6 @@ class CreateSiteDetails extends Migration
*/
public function down()
{
Schema::dropIfExists('site_details');
Schema::dropIfExists('site_details');
}
}

View 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');
});
}
}