Project

General

Profile

Feature #28519

Allow storing if db:seed is required within the DB.

Added by Eric Helms 10 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Database
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Related issues

Related to Foreman - Bug #28838: don't seed on startup if migrations are pendingClosed
Related to Foreman - Bug #28931: If seeding fails, Passenger refuses to startClosed
Related to Foreman - Bug #29272: template seeding fails during app initializationClosed
Related to Foreman - Bug #29362: run seeds in initialization if templates have changedClosed

Associated revisions

Revision 5d7d76c8 (diff)
Added by Eric Helms 9 months ago

Fixes #28519: Hash and run database seeds on startup

On startup, check for all available seed files and commute a hash
of all of them. Compare this hash to one stored in the database,
if the hash has changed run database seeds, otherwise skip running
them.

History

#1 Updated by The Foreman Bot 10 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7262 added

#2 Updated by The Foreman Bot 9 months ago

  • Fixed in Releases 2.0.0 added

#3 Updated by Ohad Levy 9 months ago

  • Subject changed from Create file when running database seed to Allow storing if db:seed is required within the DB.

#4 Updated by Eric Helms 9 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker 9 months ago

  • Related to Bug #28838: don't seed on startup if migrations are pending added

#6 Updated by Ewoud Kohl van Wijngaarden 9 months ago

  • Related to Bug #28931: If seeding fails, Passenger refuses to start added

#7 Updated by Tomer Brisker 8 months ago

  • Category set to Database

#8 Updated by Tomer Brisker 8 months ago

  • Related to Bug #29272: template seeding fails during app initialization added

#9 Updated by Tomer Brisker 7 months ago

  • Related to Bug #29362: run seeds in initialization if templates have changed added

Also available in: Atom PDF