travel guide
This commit is contained in:
parent
346a7427a5
commit
a1ca534f55
26 changed files with 5788 additions and 3191 deletions
|
|
@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
|
|||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTravelMagazinesTable extends Migration
|
||||
class CreateTravelGuidesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
|
|
@ -13,7 +13,7 @@ class CreateTravelMagazinesTable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('travel_magazines', function (Blueprint $table) {
|
||||
Schema::connection('mysql_stern')->create('travel_guides', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->string('name');
|
||||
|
|
@ -41,6 +41,6 @@ class CreateTravelMagazinesTable extends Migration
|
|||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql_stern')->dropIfExists('travel_magazines');
|
||||
Schema::connection('mysql_stern')->dropIfExists('travel_guides');
|
||||
}
|
||||
}
|
||||
|
|
@ -62,12 +62,12 @@ class CreateTravelUserBookingFewosTable extends Migration
|
|||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
|
||||
$table->foreign('travel_user_id')
|
||||
->references('id')
|
||||
->on('travel_users')
|
||||
->onDelete('CASCADE');
|
||||
|
||||
|
||||
$table->foreign('fewo_lodging_id')
|
||||
->references('id')
|
||||
->on('fewo_lodging')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue