mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateGroupsTable extends Migration
|
|
{
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('groups', function (Blueprint $table) {
|
|
$table->integer('id', true);
|
|
$table->string('name')->default('\'\'')->unique('ix_groups_name');
|
|
$table->integer('backfill_target')->default(1);
|
|
$table->bigInteger('first_record')->unsigned()->default(0);
|
|
$table->dateTime('first_record_postdate')->nullable()->default('NULL');
|
|
$table->bigInteger('last_record')->unsigned()->default(0);
|
|
$table->dateTime('last_record_postdate')->nullable()->default('NULL');
|
|
$table->dateTime('last_updated')->nullable()->default('NULL');
|
|
$table->integer('minfilestoformrelease')->nullable()->default('NULL');
|
|
$table->bigInteger('minsizetoformrelease')->nullable()->default('NULL');
|
|
$table->boolean('active')->default(0)->index('active');
|
|
$table->boolean('backfill')->default(0);
|
|
$table->string('description')->nullable()->default('\'\'');
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('groups');
|
|
}
|
|
}
|