Skip to content

Commit

Permalink
[1.x] Added dropArchivedAt macro (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher authored Nov 2, 2023
2 parents 81b95c7 + 55e5d71 commit dbcce89
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 dbcce89

Please sign in to comment.