increments('id'); $table->string('subject')->default('\'\''); $table->string('fromname')->default('\'\'')->index('fromname'); $table->dateTime('date')->nullable()->default(null)->index('date'); $table->string('xref', 2000)->default('\'\''); $table->integer('totalfiles')->unsigned()->default(0); $table->integer('groups_id')->unsigned()->default(0)->index('groups_id'); $table->string('collectionhash')->default('\'0\'')->unique('ix_collection_collectionhash'); $table->integer('collection_regexes_id')->default(0)->comment('FK to collection_regexes.id'); $table->dateTime('dateadded')->nullable()->default(null)->index('ix_collection_dateadded'); $table->dateTime('added')->default('current_timestamp()'); $table->boolean('filecheck')->default(0)->index('ix_collection_filecheck'); $table->bigInteger('filesize')->unsigned()->default(0); $table->integer('releases_id')->nullable()->default(null)->index('ix_collection_releaseid'); $table->char('noise', 32)->default('\'\''); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('collections'); } }