the browser-facing portion of osu!
fork

Configure Feed

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

at master 41 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; 7 8class CreatePollOptionsTable extends Migration 9{ 10 /** 11 * Run the migrations. 12 * 13 * @return void 14 */ 15 public function up() 16 { 17 if (Schema::hasTable('phpbb_poll_options')) { 18 return; 19 } 20 21 Schema::create('phpbb_poll_options', function ($table) { 22 $table->tinyInteger('poll_option_id')->default(0); 23 $table->mediumInteger('topic_id')->unsigned()->default(0); 24 $table->text('poll_option_text'); 25 $table->mediumInteger('poll_option_total')->unsigned()->default(0); 26 27 $table->index('poll_option_id', 'poll_opt_id'); 28 $table->index('topic_id', 'topic_id'); 29 }); 30 } 31 32 /** 33 * Reverse the migrations. 34 * 35 * @return void 36 */ 37 public function down() 38 { 39 Schema::drop('phpbb_poll_options'); 40 } 41}