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

35 lines
846 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePartsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('parts', function (Blueprint $table) {
$table->bigInteger('binaries_id')->unsigned()->default(0);
$table->string('messageid')->default('\'\'');
$table->bigInteger('number')->unsigned()->default(0);
$table->integer('partnumber')->unsigned()->default(0);
$table->integer('size')->unsigned()->default(0);
$table->primary(['binaries_id', 'number']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('parts');
}
}