Skip to content

Commit 17c1268

Browse files
authored
change method drop to dropColumn
When using drop() it should drop the whole table, you only want to drop a column
1 parent 5596fae commit 17c1268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelArchivableServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function configureMacros()
2929
});
3030

3131
Blueprint::macro('dropArchivedAt', function ($column = 'archived_at') {
32-
return $this->drop($column);
32+
return $this->dropColumn($column);
3333
});
3434
}
3535

0 commit comments

Comments
 (0)