oc-social-plugin/updates/create_pages_table.php

29 lines
764 B
PHP

<?php namespace Zoomyboy\Social\Updates;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
use Schema;
class CreatePagesTable extends Migration
{
public function up()
{
Schema::create('zoomyboy_social_pages', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('name');
$table->string('slug');
$table->string('access_token');
$table->string('remote_id');
$table->string('type');
$table->string('cover')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('zoomyboy_social_pages');
}
}