the browser-facing portion of osu!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 40 lines 1.1 kB view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6use Illuminate\Database\Migrations\Migration; 7use Illuminate\Database\Schema\Blueprint; 8 9class CreateJobsTable extends Migration 10{ 11 /** 12 * Run the migrations. 13 * 14 * @return void 15 */ 16 public function up() 17 { 18 Schema::create('jobs', function (Blueprint $table) { 19 $table->bigIncrements('id'); 20 $table->string('queue', 128); 21 $table->longText('payload'); 22 $table->tinyInteger('attempts')->unsigned(); 23 $table->tinyInteger('reserved')->unsigned(); 24 $table->unsignedInteger('reserved_at')->nullable(); 25 $table->unsignedInteger('available_at'); 26 $table->unsignedInteger('created_at'); 27 $table->index(['queue', 'reserved', 'reserved_at']); 28 }); 29 } 30 31 /** 32 * Reverse the migrations. 33 * 34 * @return void 35 */ 36 public function down() 37 { 38 Schema::drop('jobs'); 39 } 40}