Project

General

Profile

Refactor #3752

Move all data addition in DB migrations into a seed script

Added by Dominic Cleal over 5 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Our DB migrations perform a number of database setup tasks, from loading default templates through to creating the default user.

These can be difficult to maintain as the codebase evolves, plus makes it harder for us to update the default data provided in Foreman so moving to a separate seed script should make life easier.


Related issues

Blocks Foreman - Feature #3272: Separate internal admin account from user admin accountsClosed2013-10-16

Associated revisions

Revision 2b9a60bc (diff)
Added by Dominic Cleal over 5 years ago

refs #3752 - run db:seed after db:migrate

Revision 0fa5d146 (diff)
Added by Dominic Cleal over 5 years ago

fixes #3752 - move data population from migrations into seed script

Revision 9344250e (diff)
Added by Dominic Cleal over 5 years ago

refs #3752 - run db:seed after DB migration

Revision a0988118 (diff)
Added by Dominic Cleal over 5 years ago

refs #3752 - add db:seed instructions

History

#1 Updated by Dominic Cleal over 5 years ago

  • Blocks Feature #3272: Separate internal admin account from user admin accounts added

#2 Updated by Lukas Zapletal over 5 years ago

Requirement from Katello experiences: Make sure the seed script is idempotent.

#4 Updated by Dominic Cleal over 5 years ago

  • Target version set to 1.10.0
  • Legacy Backlogs Release (now unused) set to 2

#5 Updated by Dominic Cleal over 5 years ago

  • Status changed from Assigned to Ready For Testing

#6 Updated by Dominic Cleal over 5 years ago

  • Target version changed from 1.10.0 to 1.9.3

#7 Updated by Dominic Cleal over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF