visuddhinanda 2 лет назад
Родитель
Сommit
977a17b69c
1 измененных файлов с 2 добавлено и 2 удалено
  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) {
             //
-            $table->integer('fork')->index()->default(0);
+            $table->dateTime('fork_at')->nullable()->index();
             $table->integer('collaborator')->index()->default(0);
         });
     }
@@ -29,7 +29,7 @@ class AddForkInSentences extends Migration
     {
         Schema::table('sentences', function (Blueprint $table) {
             //
-            $table->dropColumn('fork');
+            $table->dropColumn('fork_at');
             $table->dropColumn('collaborator');
         });
     }