Skip to content

Commit c06bae0

Browse files
committed
Specify default values on _lft, _rgt columns
1 parent 621b224 commit c06bae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NestedSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class NestedSet
3838
*/
3939
public static function columns(Blueprint $table)
4040
{
41-
$table->unsignedInteger(self::LFT);
42-
$table->unsignedInteger(self::RGT);
41+
$table->unsignedInteger(self::LFT)->default(0);
42+
$table->unsignedInteger(self::RGT)->default(0);
4343
$table->unsignedInteger(self::PARENT_ID)->nullable();
4444

4545
$table->index(self::getDefaultColumns());

0 commit comments

Comments
 (0)