oc-adrema-plugin/updates/create_settings_table.php

33 lines
676 B
PHP

<?php namespace Silva\Adrema\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
/**
* CreateSettingsTable Migration
*
* @link https://docs.octobercms.com/3.x/extend/database/structure.html
*/
return new class extends Migration
{
/**
* up builds the migration
*/
public function up()
{
Schema::create('silva_adrema_settings', function(Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* down reverses the migration
*/
public function down()
{
Schema::dropIfExists('silva_adrema_settings');
}
};