oc-social-plugin/updates/create_accounts_table.php

29 lines
747 B
PHP
Raw Permalink Normal View History

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;
use Schema;
/**
* CreateAccountsTable Migration
*/
class CreateAccountsTable extends Migration
{
public function up()
{
Schema::create('zoomyboy_social_accounts', function (Blueprint $table) {
$table->increments('id');
$table->string('client_id')->nullable();
$table->string('client_secret')->nullable();
$table->string('access_token')->nullable();
$table->string('page')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('zoomyboy_social_accounts');
}
}