We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 621b224 commit c06bae0Copy full SHA for c06bae0
src/NestedSet.php
@@ -38,8 +38,8 @@ class NestedSet
38
*/
39
public static function columns(Blueprint $table)
40
{
41
- $table->unsignedInteger(self::LFT);
42
- $table->unsignedInteger(self::RGT);
+ $table->unsignedInteger(self::LFT)->default(0);
+ $table->unsignedInteger(self::RGT)->default(0);
43
$table->unsignedInteger(self::PARENT_ID)->nullable();
44
45
$table->index(self::getDefaultColumns());
0 commit comments