Page MenuHomePhorge

Universal Database Seeder
AbandonedPublic

Authored by machniak on Feb 3 2023, 12:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 8 2024, 6:08 AM
Unknown Object (File)
Jan 29 2024, 4:51 PM
Unknown Object (File)
Jan 23 2024, 11:48 PM
Unknown Object (File)
Jan 20 2024, 10:58 PM
Unknown Object (File)
Jan 14 2024, 3:03 PM
Unknown Object (File)
Dec 23 2023, 2:35 AM
Unknown Object (File)
Dec 22 2023, 2:36 AM
Unknown Object (File)
Dec 21 2023, 10:45 AM
Subscribers
Restricted Project

Details

Reviewers
None
Group Reviewers
Restricted Project

Diff Detail

Repository
rK kolab
Branch
dev/seeders
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 41506
Build 16645: arc lint + arc unit

Event Timeline

machniak created this revision.

There's pros and cons with this approach:

  • no need for env-specific DatabaseSeeder class
  • seeders are required to use Database\Seeds namespace, and class names must be the same as the filename (after removing XX- prefix and .php suffix). It could be done with anonymous classes, but the command output would be uglier.

I'm not a fan of this solution.

  • For the immediate issue this seems like the simpler fix: https://git.kolab.org/D4069
  • IMO this makes the seeder unnecessarily complicated
  • This is not a solution for other cases where we'd overlay an existing file.