27 lines
705 B
PHP
27 lines
705 B
PHP
<?php namespace Zoomyboy\Social\Updates;
|
|
|
|
use October\Rain\Database\Schema\Blueprint;
|
|
use October\Rain\Database\Updates\Migration;
|
|
use Schema;
|
|
|
|
class CreatePostsTable extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
Schema::create('zoomyboy_social_posts', function (Blueprint $table) {
|
|
$table->engine = 'InnoDB';
|
|
$table->increments('id');
|
|
$table->text('message')->nullable();
|
|
$table->string('remote_id');
|
|
$table->integer('page_id');
|
|
$table->string('href', 500)->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('zoomyboy_social_posts');
|
|
}
|
|
}
|