Booking, QI Content, Trees, Media
This commit is contained in:
parent
1f340e96fa
commit
7fbac395a9
260 changed files with 27160 additions and 3773 deletions
|
|
@ -29,7 +29,6 @@ class CreateDraftItemsTable extends Migration
|
|||
|
||||
$table->decimal('price', 8, 2)->nullable();
|
||||
|
||||
|
||||
$table->tinyInteger('pos')->unsigned()->nullable();
|
||||
$table->boolean('in_pdf')->default(true);
|
||||
$table->boolean('active')->default(true);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,22 @@ class CreateTravelCountryTable extends Migration
|
|||
$table->integer('feedback_page_id')->index();
|
||||
|
||||
$table->string('name')->nullable();
|
||||
$table->string('slug')->nullable();
|
||||
|
||||
|
||||
|
||||
$table->text('html_information')->nullable();
|
||||
$table->string('text_before')->nullable();
|
||||
$table->string('text_after')->nullable();
|
||||
|
||||
$table->string('contact_headline')->nullable();
|
||||
$table->text('contact_text_1')->nullable();
|
||||
$table->text('contact_text_2')->nullable();
|
||||
$table->text('contact_text_3')->nullable();
|
||||
$table->text('contact_text_4')->nullable();
|
||||
$table->text('contact_footer')->nullable();
|
||||
|
||||
|
||||
$table->text('entry_requirements')->nullable(); //need?
|
||||
|
||||
$table->boolean('is_customer_country');
|
||||
|
|
|
|||
|
|
@ -16,9 +16,6 @@ class CreateTravelGuidesTable extends Migration
|
|||
Schema::connection('mysql_stern')->create('travel_guides', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
|
||||
$table->unsignedBigInteger('tree_node_id');
|
||||
|
||||
$table->string('name');
|
||||
$table->string('slug')->index()->unique();
|
||||
|
||||
|
|
@ -31,16 +28,15 @@ class CreateTravelGuidesTable extends Migration
|
|||
$table->string('meta_description')->nullable();
|
||||
$table->string('meta_keywords')->nullable();
|
||||
|
||||
$table->integer('country_id')->nullable()->index();
|
||||
$table->string('box_image_url', 200)->nullable();
|
||||
|
||||
$table->tinyInteger('pos')->unsigned()->nullable();
|
||||
$table->boolean('scope')->default(true);
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('tree_node_id')
|
||||
->references('id')
|
||||
->on('i_q_content_tree_nodes');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@ class CreateTravelUserBookingFewosTable extends Migration
|
|||
$table->text('send_info_mail')->nullable();
|
||||
$table->text('info_mail_text')->nullable();
|
||||
|
||||
$table->timestamp('last_change_at')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateIQContentSitesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('i_q_content_sites', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedBigInteger('tree_node_id');
|
||||
$table->unsignedInteger('travel_guide_id');
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('tree_node_id')
|
||||
->references('id')
|
||||
->on('i_q_content_tree_nodes')
|
||||
->onDelete('CASCADE');
|
||||
|
||||
|
||||
|
||||
$table->foreign('travel_guide_id')
|
||||
->references('id')
|
||||
->on('travel_guides')
|
||||
->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql_stern')->dropIfExists('i_q_content_sites');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateIQContentFoldersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('i_q_content_folders', function (Blueprint $table) {
|
||||
|
||||
$table->bigIncrements('id');
|
||||
|
||||
$table->unsignedBigInteger('folder_id')->nullable()->index();
|
||||
|
||||
$table->string('name')->index();
|
||||
$table->string('slug')->unique()->index();
|
||||
$table->string('identifier')->nullable();
|
||||
$table->string('path')->nullable();
|
||||
|
||||
|
||||
$table->unsignedTinyInteger('color')->default(0);
|
||||
$table->unsignedTinyInteger('pos')->default(0);
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('folder_id')
|
||||
->references('id')
|
||||
->on('i_q_content_folders')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql_stern')->dropIfExists('i_q_content_folders');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateIQContentFilesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('i_q_content_files', function (Blueprint $table) {
|
||||
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('folder_id')->nullable()->index();
|
||||
|
||||
$table->string('name')->index();
|
||||
$table->string('identifier')->nullable();
|
||||
$table->string('slug')->unique()->index();
|
||||
|
||||
$table->string('ext', 10)->nullable();
|
||||
$table->string('mine', 100)->nullable();
|
||||
$table->unsignedInteger('size')->unsigned();
|
||||
$table->string('dimensions', 100)->nullable();
|
||||
|
||||
$table->text('content')->nullable();
|
||||
|
||||
$table->unsignedTinyInteger('color')->default(0);
|
||||
$table->unsignedTinyInteger('pos')->default(0);
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('folder_id')
|
||||
->references('id')
|
||||
->on('i_q_content_folders')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql_stern')->dropIfExists('i_q_content_files');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateIQContentCategoriesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('i_q_content_categories', function (Blueprint $table) {
|
||||
|
||||
$table->bigIncrements('id');
|
||||
|
||||
$table->string('name')->index();
|
||||
$table->string('slug')->unique()->index();
|
||||
$table->unsignedTinyInteger('pos')->default(0);
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql_stern')->dropIfExists('i_q_content_categories');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateIQContentTagsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('i_q_content_tags', function (Blueprint $table) {
|
||||
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedBigInteger('category_id')->index();
|
||||
|
||||
$table->string('name')->index();
|
||||
$table->string('slug')->unique()->index();
|
||||
$table->unsignedTinyInteger('pos')->default(0);
|
||||
$table->boolean('active')->default(true);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('category_id')
|
||||
->references('id')
|
||||
->on('i_q_content_categories')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql_stern')->dropIfExists('i_q_content_tags');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateIQContentFileTagsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql_stern')->create('i_q_content_file_tags', function (Blueprint $table) {
|
||||
|
||||
$table->bigIncrements('id');
|
||||
|
||||
$table->unsignedBigInteger('file_id')->index();
|
||||
$table->unsignedBigInteger('tag_id')->index();
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('file_id')
|
||||
->references('id')
|
||||
->on('i_q_content_files')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('tag_id')
|
||||
->references('id')
|
||||
->on('i_q_content_tags')
|
||||
->onDelete('cascade');
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql_stern')->dropIfExists('i_q_content_file_tags');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue