Skip to content

Custom table name from config #772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Conversation

erikn69
Copy link
Contributor

@erikn69 erikn69 commented Mar 8, 2023

On config we have audit.drivers.database.table but on migration it is never called, this PR fix migration

  • Clean trailing spaces on migration
  • Use table name from config $table = config('audit.drivers.database.table', 'audits');
  • Use a custom table name on tests, this test that functionality
  • Test original audits migration instead of duplicate it

'drivers' => [
'database' => [
'table' => 'audits',
'connection' => null,
],
],

THIS PR DON'T BREAK PREVIOUS MIGRATIONS

@anteriovieira anteriovieira merged commit e0904ac into owen-it:master Mar 10, 2023
@erikn69 erikn69 deleted the patch-17 branch March 21, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants