36 lines
803 B
PHP
Executable File
36 lines
803 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class SystemPreferences extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('system_preferences', function (Blueprint $table) {
|
|
$table->increments('sp_id');
|
|
$table->uuid('sp_uuid')->unique();
|
|
$table->string('name',64);
|
|
$table->text('value');
|
|
$table->timestamp('updated_at');
|
|
$table->integer('updated_by')->default(0);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('system_preferences');
|
|
}
|
|
}
|