This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/database/2016_12_11_160011_osu_leaderboard_tables.php

60 lines
1.5 KiB
PHP
Raw Normal View History

2016-12-11 18:51:45 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Sakura\DB;
class OsuLeaderboardTables extends Migration
{
/**
* Run the migrations.
* @return void
*/
public function up()
{
$schema = DB::getSchemaBuilder();
$schema->create('osu_leaderboard', function (Blueprint $table) {
$table->integer('user_id');
$table->string('username');
$table->integer('osu_user_id');
$table->string('osu_username');
$table->tinyInteger('osu_game_mode');
$table->integer('osu_count_300');
$table->integer('osu_count_100');
$table->integer('osu_count_50');
$table->integer('osu_count_ss');
$table->integer('osu_count_s');
$table->integer('osu_count_a');
$table->integer('osu_play_count');
$table->bigInteger('osu_score_ranked');
$table->bigInteger('osu_score_total');
$table->integer('osu_rank');
$table->char('osu_country', 2);
$table->integer('osu_rank_country');
$table->float('osu_performance');
$table->float('osu_accuracy');
$table->float('osu_level');
$table->timestamp('updated_on');
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
$schema = DB::getSchemaBuilder();
$schema->drop('osu_leaderboard');
}
}