the browser-facing portion of osu!
1<?php
2
3/**
4 * This file is part of OAuth 2.0 Laravel.
5 *
6 * (c) Luca Degasperi <packages@lucadegasperi.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12use Illuminate\Database\Migrations\Migration;
13use Illuminate\Database\Schema\Blueprint;
14use Illuminate\Support\Facades\Schema;
15
16/**
17 * This is the create oauth grants table migration class.
18 *
19 * @author Luca Degasperi <packages@lucadegasperi.com>
20 */
21return new class extends Migration
22{
23 /**
24 * Run the migrations.
25 *
26 * @return void
27 */
28 public function up()
29 {
30 Schema::create('oauth_grants', function (Blueprint $table) {
31 $table->string('id', 40)->primary();
32 $table->timestamps();
33 });
34 }
35
36 /**
37 * Reverse the migrations.
38 *
39 * @return void
40 */
41 public function down()
42 {
43 Schema::drop('oauth_grants');
44 }
45};