27 lines
695 B
PHP
27 lines
695 B
PHP
|
<?php namespace Zoomyboy\Social\Updates;
|
||
|
|
||
|
use Schema;
|
||
|
use October\Rain\Database\Schema\Blueprint;
|
||
|
use October\Rain\Database\Updates\Migration;
|
||
|
|
||
|
class CreateAttachmentsTable extends Migration
|
||
|
{
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('zoomyboy_social_attachments', function (Blueprint $table) {
|
||
|
$table->engine = 'InnoDB';
|
||
|
$table->increments('id');
|
||
|
$table->string('href');
|
||
|
$table->string('type');
|
||
|
$table->integer('post_id');
|
||
|
$table->string('facebook_id');
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('zoomyboy_social_attachments');
|
||
|
}
|
||
|
}
|