23.11 Upload to live

This commit is contained in:
Kevin Adametz 2019-11-23 15:02:41 +01:00
parent 8cae2f92a4
commit 8ebdacec98
80 changed files with 7320 additions and 3937 deletions

View file

@ -0,0 +1,42 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIqImagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('iq_images', function (Blueprint $table) {
$table->increments('id');
$table->string('filename')->index();
$table->string('original_name')->index();
$table->string('ext')->index();
$table->string('mine')->index();
$table->unsignedInteger('size');
$table->boolean('active')->default(true);
$table->string('slug')->unique()->index();
$table->unsignedTinyInteger('pos')->nullable()->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('iq_images');
}
}

View file

@ -19,8 +19,12 @@ class CreateCategoriesTable extends Migration
$table->unsignedInteger('parent_id')->index()->nullable();
$table->string('name')->index();
$table->string('headline')->index();
$table->unsignedInteger('headline_image_id')->nullable()->index();
$table->text('trans_headline')->nullable();
$table->text('trans_name')->nullable();
$table->tinyInteger('pos')->unsigned()->nullable();
$table->unsignedTinyInteger('pos')->nullable()->default(0);
$table->boolean('active')->default(false);
$table->string('slug')->unique()->index();
@ -31,6 +35,10 @@ class CreateCategoriesTable extends Migration
$table->foreign('parent_id')
->references('id')
->on('categories');
$table->foreign('headline_image_id')
->references('id')
->on('iq_images');
});
}

View file

@ -25,6 +25,8 @@ class CreateProductImagesTable extends Migration
$table->unsignedInteger('size');
$table->boolean('active')->default(true);
$table->string('slug')->unique()->index();
$table->unsignedTinyInteger('pos')->nullable()->default(0);
$table->timestamps();

View file

@ -0,0 +1,49 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIqSitesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('iq_sites', function (Blueprint $table) {
$table->increments('id');
$table->string('slug')->unique()->index();
$table->string('headline')->nullable();
$table->text('copy')->nullable();
$table->string('products')->nullable();
$table->string('set_products')->nullable();
$table->unsignedInteger('iq_image_id')->nullable()->index();
$table->foreign('iq_image_id')
->references('id')
->on('iq_images');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('iq_sites');
}
}