Files
newznab-tmux/database/migrations/2017_10_12_124141_create_sharing_table.php
T
DariusIII f390796790 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-10-12 10:55:39 +00:00

42 lines
1.2 KiB
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSharingTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sharing', function (Blueprint $table) {
$table->string('site_guid', 40)->default('\'\'')->primary();
$table->string('site_name')->default('\'\'');
$table->string('username')->default('\'\'');
$table->boolean('enabled')->default(0);
$table->boolean('posting')->default(0);
$table->boolean('fetching')->default(1);
$table->boolean('auto_enable')->default(1);
$table->boolean('start_position')->default(0);
$table->boolean('hide_users')->default(1);
$table->bigInteger('last_article')->unsigned()->default(0);
$table->integer('max_push')->unsigned()->default(40);
$table->integer('max_download')->unsigned()->default(150);
$table->integer('max_pull')->unsigned()->default(20000);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('sharing');
}
}