PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
CMS
/
Database
/
Migrations
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateComponentPropertiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('component_properties', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('component_id')->index('component_properties_component_id_foreign_idx'); $table->string('name')->nullable(); $table->string('type')->nullable(); $table->string('value', 15000)->nullable(); $table->unique(['name', 'component_id']); $table->foreign(['component_id'])->references(['id'])->on('components')->onUpdate('CASCADE')->onDelete('CASCADE'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('component_properties'); } }
[-] 2021_12_15_064237_create_sliders_table.php
[edit]
[+]
..
[-] 2022_03_06_050741_create_layouts_table.php
[edit]
[-] 2022_03_06_050657_create_layout_types_table.php
[edit]
[-] 2021_12_15_064237_create_slides_table.php
[edit]
[-] 2022_03_06_051911_create_component_properties_table.php
[edit]
[-] 2021_12_15_064237_create_theme_options_table.php
[edit]
[-] 2022_03_06_051329_create_components_table.php
[edit]
[-] 2021_12_15_064237_create_pages_table.php
[edit]