Skip to content

Commit d93f571

Browse files
committed
Use unsigned integers for lft and rgt
1 parent 5a5403e commit d93f571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Kalnoy/Nestedset/NestedSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class NestedSet {
1515
*/
1616
public static function columns(Blueprint $table, $primaryKey = 'id')
1717
{
18-
$table->integer(Node::LFT);
19-
$table->integer(Node::RGT);
18+
$table->unsignedInteger(Node::LFT);
19+
$table->unsignedInteger(Node::RGT);
2020
$table->unsignedInteger(Node::PARENT_ID)->nullable();
2121

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

0 commit comments

Comments
 (0)