Project

General

Profile

Bug #297

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

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

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

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.

Associated revisions

Revision 51252890 (diff)
Added by Frank Sweetser almost 9 years ago

fixes #297 - Prevent operatingsystem.minor from storing NULLs

History

#1 Updated by Ohad Levy almost 9 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)

#2 Updated by Ohad Levy almost 9 years ago

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

#3 Updated by Frank Sweetser almost 9 years ago

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

#4 Updated by Ohad Levy almost 9 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF