oc-resizer-plugin/updates/create_settings_table.php

23 lines
524 B
PHP

<?php namespace Aweos\Resizer\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
class CreateSettingsTable extends Migration
{
public function up()
{
Schema::create('aweos_resizer_settings', function(Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('aweos_resizer_settings');
}
}