1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Migrations: Updated with type hints instead of php doc

Also updated code to properly import used facades.
For #4903
This commit is contained in:
Dan Brown
2024-03-17 15:29:09 +00:00
parent d6b7717985
commit 45d52f27ae
83 changed files with 241 additions and 523 deletions

View File

@ -3,16 +3,15 @@
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
public function up(): void
{
// Add API tokens table
@ -42,10 +41,8 @@ return new class extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
public function down(): void
{
// Remove API tokens table
Schema::dropIfExists('api_tokens');