]> BookStack Code Mirror - bookstack/blobdiff - database/migrations/2020_11_07_232321_simplify_activities_table.php
Migrations: Updated with type hints instead of php doc
[bookstack] / database / migrations / 2020_11_07_232321_simplify_activities_table.php
index 6ebe3fad015bc681f9b533d02f9593b085939533..c128a3235f740f448c5bddc1e634f134ae927a0f 100644 (file)
@@ -9,10 +9,8 @@ return new class extends Migration
 {
     /**
      * Run the migrations.
-     *
-     * @return void
      */
-    public function up()
+    public function up(): void
     {
         Schema::table('activities', function (Blueprint $table) {
             $table->renameColumn('key', 'type');
@@ -32,10 +30,8 @@ return new class extends Migration
 
     /**
      * Reverse the migrations.
-     *
-     * @return void
      */
-    public function down()
+    public function down(): void
     {
         DB::table('activities')
             ->whereNull('entity_id')