D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
kader-lms.com
/
database
/
migrations
/
Filename :
2019_09_09_142112_create_sm_styles_table.php
back
Copy
<?php use App\SmStyle; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSmStylesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('sm_styles', function (Blueprint $table) { $table->increments('id'); $table->string('style_name', 255)->nullable(); $table->string('path_main_style', 255)->nullable(); $table->string('path_infix_style', 255)->nullable(); $table->string('primary_color', 255)->nullable(); $table->string('primary_color2', 255)->nullable(); $table->string('title_color', 255)->nullable(); $table->string('text_color', 255)->nullable(); $table->string('white', 255)->nullable(); $table->string('black', 255)->nullable(); $table->string('sidebar_bg', 255)->nullable(); $table->string('barchart1', 255)->nullable(); $table->string('barchart2', 255)->nullable(); $table->string('barcharttextcolor', 255)->nullable(); $table->string('barcharttextfamily', 255)->nullable(); $table->string('areachartlinecolor1', 255)->nullable(); $table->string('areachartlinecolor2', 255)->nullable(); $table->string('dashboardbackground', 255)->nullable(); $table->tinyInteger('active_status')->default(1); $table->tinyInteger('is_active')->default(0); $table->tinyInteger('is_default')->default(0)->comment("if 1 then yes, if 0 then no"); $table->timestamps(); $table->integer('created_by')->nullable()->default(1)->unsigned(); $table->integer('updated_by')->nullable()->default(1)->unsigned(); $table->integer('school_id')->nullable()->default(1)->unsigned(); $table->foreign('school_id')->references('id')->on('sm_schools')->onDelete('cascade'); }); $s = new SmStyle(); $s->style_name = 'Default'; $s->path_main_style = 'style.css'; $s->path_infix_style = 'infix.css'; $s->primary_color = '#415094'; $s->primary_color2 = '#7c32ff'; $s->title_color = '#222222'; $s->text_color = '#828bb2'; $s->white = '#ffffff'; $s->black = '#000000'; $s->sidebar_bg = '#e7ecff'; $s->barchart1 = '#8a33f8'; $s->barchart2 = '#f25278'; $s->barcharttextcolor = '#415094'; $s->barcharttextfamily = '"poppins", sans-serif'; $s->areachartlinecolor1 = 'rgba(124, 50, 255, 0.5)'; $s->areachartlinecolor2 = 'rgba(242, 82, 120, 0.5)'; $s->dashboardbackground = ''; $s->is_active = 1; $s->save(); $s = new SmStyle(); $s->style_name = 'Lawn Green'; $s->path_main_style = 'lawngreen_version/style.css'; $s->path_infix_style = 'lawngreen_version/infix.css'; $s->primary_color = '#415094'; $s->primary_color2 = '#03e396'; $s->title_color = '#222222'; $s->text_color = '#828bb2'; $s->white = '#ffffff'; $s->black = '#000000'; $s->sidebar_bg = '#e7ecff'; $s->barchart1 = '#415094'; $s->barchart2 = '#03e396'; $s->barcharttextcolor = '#03e396'; $s->barcharttextfamily = '"Cerebri Sans", Helvetica, Arial, sans-serif'; $s->areachartlinecolor1 = '#415094'; $s->areachartlinecolor2 = '#03e396'; $s->dashboardbackground = '#e7ecff'; $s->save(); // $s = new SmStyle(); // $s->style_name = 'Sky Blue'; // $s->path_main_style = 'blue_version/style.css'; // $s->path_infix_style = 'blue_version/infix.css'; // $s->primary_color = '#415094'; // $s->primary_color2 = '#2c7be5'; // $s->title_color = '#222222'; // $s->text_color = '#828bb2'; // $s->white = '#ffffff'; // $s->black = '#000000'; // $s->sidebar_bg = '#e7ecff'; // $s->barchart1 = '#8a33f8'; // $s->barchart2 = '#f25278'; // $s->barcharttextcolor = '#415094'; // $s->barcharttextfamily = 'HKGroteskRegular'; // $s->areachartlinecolor1 = 'rgba(124, 50, 255, 0.5)'; // $s->areachartlinecolor2 = 'rgba(242, 82, 120, 0.5)'; // $s->dashboardbackground = '#e7ecff'; // $s->save(); // Orange Color Theme // $s = new SmStyle(); // $s->style_name = 'Orange'; // $s->path_main_style = 'orange_version/style.css'; // $s->path_infix_style = 'orange_version/infix.css'; // $s->primary_color = '#415094'; // $s->primary_color2 = '#f2662f'; // $s->title_color = '#222222'; // $s->text_color = '#828bb2'; // $s->white = '#ffffff'; // $s->black = '#000000'; // $s->sidebar_bg = '#e7ecff'; // $s->barchart1 = '#415094'; // $s->barchart2 = '#f2662f'; // $s->barcharttextcolor = '#f2662f'; // $s->barcharttextfamily = '"Cerebri Sans", Helvetica, Arial, sans-serif'; // $s->areachartlinecolor1 = '#415094'; // $s->areachartlinecolor2 = '#f25278'; // $s->dashboardbackground = '#e7ecff'; // $s->save(); // $s = new SmStyle(); // $s->style_name = 'Paste'; // $s->path_main_style = 'paste_version/style.css'; // $s->path_infix_style = 'paste_version/infix.css'; // $s->primary_color = '#415094'; // $s->primary_color2 = '#05dce9'; // $s->title_color = '#222222'; // $s->text_color = '#828bb2'; // $s->white = '#ffffff'; // $s->black = '#000000'; // $s->sidebar_bg = '#e7ecff'; // $s->barchart1 = '#415094'; // $s->barchart2 = '#05dce9'; // $s->barcharttextcolor = '#05dce9'; // $s->barcharttextfamily = '"Cerebri Sans", Helvetica, Arial, sans-serif'; // $s->areachartlinecolor1 = '#415094'; // $s->areachartlinecolor2 = '#05dce9'; // $s->dashboardbackground = '#e7ecff'; // $s->save(); // $s = new SmStyle(); // $s->style_name = 'Dark Blue'; // $s->path_main_style = 'darkblue_version/style.css'; // $s->path_infix_style = 'darkblue_version/infix.css'; // $s->primary_color = '#415094'; // $s->primary_color2 = '#4046f4'; // $s->title_color = '#222222'; // $s->text_color = '#828bb2'; // $s->white = '#ffffff'; // $s->black = '#000000'; // $s->sidebar_bg = '#e7ecff'; // $s->barchart1 = '#415094'; // $s->barchart2 = '#4046f4'; // $s->barcharttextcolor = '#4046f4'; // $s->barcharttextfamily = '"Cerebri Sans", Helvetica, Arial, sans-serif'; // $s->areachartlinecolor1 = '#415094'; // $s->areachartlinecolor2 = '#4046f4'; // $s->dashboardbackground = '#e7ecff'; // $s->save(); // $s = new SmStyle(); // $s->style_name = 'Pink'; // $s->path_main_style = 'pink_version/style.css'; // $s->path_infix_style = 'pink_version/infix.css'; // $s->primary_color = '#415094'; // $s->primary_color2 = '#ff1e6d'; // $s->title_color = '#222222'; // $s->text_color = '#828bb2'; // $s->white = '#ffffff'; // $s->black = '#000000'; // $s->sidebar_bg = '#e7ecff'; // $s->barchart1 = '#415094'; // $s->barchart2 = '#ff1e6d'; // $s->barcharttextcolor = '#ff1e6d'; // $s->barcharttextfamily = '"Cerebri Sans", Helvetica, Arial, sans-serif'; // $s->areachartlinecolor1 = '#415094'; // $s->areachartlinecolor2 = '#ff1e6d'; // $s->dashboardbackground = '#e7ecff'; // $s->save(); // $s = new SmStyle(); // $s->style_name = 'Dark'; // $s->path_main_style = 'dark_version/style.css'; // $s->path_infix_style = 'dark_version/infix.css'; // $s->primary_color = '#000'; // $s->primary_color2 = '#000'; // $s->title_color = '#222222'; // $s->text_color = '#000'; // $s->white = '#ffffff'; // $s->black = '#000000'; // $s->sidebar_bg = '#dcdcdf'; // $s->barchart1 = '#000'; // $s->barchart2 = '#000'; // $s->barcharttextcolor = '#000'; // $s->barcharttextfamily = '"Cerebri Sans", Helvetica, Arial, sans-serif'; // $s->areachartlinecolor1 = '#000'; // $s->areachartlinecolor2 = '#222'; // $s->dashboardbackground = '#e7ecff'; // $s->save(); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('sm_styles'); } }