Path: blob/1.0-develop/database/migrations/2016_01_23_202731_add_service_varibles.php
7460 views
<?php12use Illuminate\Support\Facades\Schema;3use Illuminate\Database\Schema\Blueprint;4use Illuminate\Database\Migrations\Migration;56class AddServiceVaribles extends Migration7{8/**9* Run the migrations.10*/11public function up(): void12{13Schema::create('service_variables', function (Blueprint $table) {14$table->increments('id');15$table->mediumInteger('option_id')->unsigned();16$table->string('name');17$table->text('description');18$table->string('env_variable');19$table->string('default_value');20$table->tinyInteger('user_viewable')->unsigned();21$table->tinyInteger('user_editable')->unsigned();22$table->tinyInteger('required')->unsigned();23$table->string('regex')->nullable();24$table->timestamps();25});26}2728/**29* Reverse the migrations.30*/31public function down(): void32{33Schema::dropIfExists('service_variables');34}35}363738