60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
|
<?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');
|
||
|
}
|
||
|
}
|