Bug #297

NULL values in operatingsystem.minor break helper function in lib/family.rb

Added by Frank Sweetser almost 2 years ago. Updated almost 2 years ago.

Status:Closed Start:06/02/2010
Priority:Normal Due date:
Assigned to:Ohad Levy % Done:

100%

Category:DB migrations
Target version:0.1-5
Backlog: Difficulity:
Votes: 0

Description

If operatingsystem.minor is null, the helper functions that run gsub on it in lib/family.rb die. Simple migration patch that changes the column definition to match major attached.

0001-Prevent-operatingsystem.minor-from-storing-NULLs.patch (904 Bytes) Frank Sweetser, 06/02/2010 03:38 am

Associated revisions

Revision 51252890503840cffcbd82cd82dabc1a61c353d2
Added by Frank Sweetser almost 2 years ago

fixes #297 - Prevent operatingsystem.minor from storing NULLs

History

Updated by Ohad Levy almost 2 years ago

  • Target version set to 0.1-5

this breaks the fact importer (rake test), I'll investigate further

SQLite3::SQLException: operatingsystems.minor may not be NULL: INSERT INTO "operatingsystems" ("name", "family_id", "created_at", "updated_at", "nameindicator", "major", "release_name", "minor") VALUES('RedHat', NULL, '2010-06-02 02:49:08', '2010-06-02 02:49:08', NULL, '4', NULL, NULL)

Updated by Ohad Levy almost 2 years ago

  • Status changed from New to Assigned
  • Assigned to set to Ohad Levy

Updated by Frank Sweetser almost 2 years ago

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

Updated by Ohad Levy almost 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF