the browser-facing portion of osu!
0
fork

Configure Feed

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

at master 46 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; 8use Illuminate\Support\Facades\Schema; 9 10class CreateRooms extends Migration 11{ 12 /** 13 * Run the migrations. 14 * 15 * @return void 16 */ 17 public function up() 18 { 19 Schema::create('multiplayer_rooms', function (Blueprint $table) { 20 $table->bigIncrements('id'); 21 $table->unsignedMediumInteger('user_id'); 22 23 $table->string('name', 100); 24 25 $table->timestampTz('starts_at')->useCurrent(); 26 $table->timestampTz('ends_at')->useCurrent(); 27 28 $table->unsignedTinyInteger('max_attempts')->nullable(); 29 30 $table->timestampsTz(); 31 $table->softDeletes(); 32 33 $table->index('user_id'); 34 }); 35 } 36 37 /** 38 * Reverse the migrations. 39 * 40 * @return void 41 */ 42 public function down() 43 { 44 Schema::drop('multiplayer_rooms'); 45 } 46}