Browse Source

dateTime('fork_at')

visuddhinanda 2 years ago
parent
commit
977a17b69c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      database/migrations/2024_01_20_024558_add_fork_in_sentences.php

+ 2 - 2
database/migrations/2024_01_20_024558_add_fork_in_sentences.php

@@ -15,7 +15,7 @@ class AddForkInSentences extends Migration
     {
     {
         Schema::table('sentences', function (Blueprint $table) {
         Schema::table('sentences', function (Blueprint $table) {
             //
             //
-            $table->integer('fork')->index()->default(0);
+            $table->dateTime('fork_at')->nullable()->index();
             $table->integer('collaborator')->index()->default(0);
             $table->integer('collaborator')->index()->default(0);
         });
         });
     }
     }
@@ -29,7 +29,7 @@ class AddForkInSentences extends Migration
     {
     {
         Schema::table('sentences', function (Blueprint $table) {
         Schema::table('sentences', function (Blueprint $table) {
             //
             //
-            $table->dropColumn('fork');
+            $table->dropColumn('fork_at');
             $table->dropColumn('collaborator');
             $table->dropColumn('collaborator');
         });
         });
     }
     }