]> BookStack Code Mirror - bookstack/blobdiff - database/migrations/2015_07_12_114933_create_books_table.php
Migrations: Updated with type hints instead of php doc
[bookstack] / database / migrations / 2015_07_12_114933_create_books_table.php
index 95916945871e27f367c2e62e4a6ff66176e9f4fd..98d0433650d05f7c75bbb3d2ae3629430b0dbf6a 100644 (file)
@@ -2,15 +2,14 @@
 
 use Illuminate\Database\Migrations\Migration;
 use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
 
 return new class extends Migration
 {
     /**
      * Run the migrations.
-     *
-     * @return void
      */
-    public function up()
+    public function up(): void
     {
         Schema::create('books', function (Blueprint $table) {
             $table->increments('id');
@@ -23,10 +22,8 @@ return new class extends Migration
 
     /**
      * Reverse the migrations.
-     *
-     * @return void
      */
-    public function down()
+    public function down(): void
     {
         Schema::drop('books');
     }