29 lines
747 B
PHP
29 lines
747 B
PHP
|
<?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');
|
||
|
}
|
||
|
}
|