oc-resizer-plugin/updates/create_settings_table.php

23 lines
524 B
PHP
Raw Normal View History

2019-09-17 23:14:29 +02:00
<?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');
}
}