Skip to content

Commit

Permalink
Drop macro
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Nov 2, 2023
1 parent 81b95c7 commit 55e5d71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/LaravelArchivableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ protected function configureMacros()
Blueprint::macro('archivedAt', function ($column = 'archived_at', $precision = 0) {
return $this->timestamp($column, $precision)->nullable();
});

Blueprint::macro('dropArchivedAt', function ($column = 'archived_at') {
return $this->drop($column);
});
}

/**
Expand Down

0 comments on commit 55e5d71

Please sign in to comment.