2021-10-28 22:35:15 +02:00
|
|
|
<?php namespace Zoomyboy\Social\Updates;
|
|
|
|
|
|
|
|
use October\Rain\Database\Schema\Blueprint;
|
|
|
|
use October\Rain\Database\Updates\Migration;
|
2021-10-30 12:16:27 +02:00
|
|
|
use Schema;
|
2021-10-28 22:35:15 +02:00
|
|
|
|
|
|
|
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');
|
2021-10-30 12:16:27 +02:00
|
|
|
$table->string('remote_id');
|
2021-10-28 22:35:15 +02:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('zoomyboy_social_attachments');
|
|
|
|
}
|
|
|
|
}
|