corrected errors
This commit is contained in:
@@ -17,7 +17,7 @@ class CreateDataTablesTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
$table->unsignedInteger('owner_id');
|
||||
$table->unsignedInteger('precursor_id')->nullable(); // fork source
|
||||
$table->unsignedInteger('parent_table_id')->nullable(); // fork source
|
||||
$table->unsignedInteger('revision'); // incremented with each applied changeset
|
||||
$table->string('title')->index(); // indexable
|
||||
$table->text('description');
|
||||
|
||||
@@ -27,7 +27,7 @@ class CreateTableCommentsTable extends Migration
|
||||
$table->foreign('author_id')->references('id')->on('users')
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('ancestor_id')->references('id')->on('comments')
|
||||
$table->foreign('ancestor_id')->references('id')->on('table_comments')
|
||||
->onDelete('set null');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user