october_1x0/plugins/rainlab/translate/updates/create_messages_table.php

26 lines
575 B
PHP

<?php namespace RainLab\Translate\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class CreateMessagesTable extends Migration
{
public function up()
{
Schema::create('rainlab_translate_messages', function($table)
{
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('code')->index()->nullable();
$table->mediumText('message_data')->nullable();
});
}
public function down()
{
Schema::dropIfExists('rainlab_translate_messages');
}
}