Opened 17 years ago
Closed 17 years ago
#328 closed enhancement (fixed)
Schema enhancement inventory_maint_policy_id needs to be non-nullable in inventory table
| Reported by: | Mark J. Millard | Owned by: | bweaver |
|---|---|---|---|
| Priority: | major | Milestone: | Beta 3 |
| Component: | Database, Data Updates | Version: | 1.5.988 |
| Severity: | Keywords: | inventory_main_policy_id inventory dataview | |
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
The inventory_maint_policy table, old im table manages how inventory is created and how it interacts with orders and who is primarily responsible for the inventory. I believe it should be a non-nullable field in the inventory table.
Change History (2)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Made this change on dev1 2010/02/19. Will be in next release for local installers.
Note:
See TracTickets
for help on using tickets.

Ok, I looked at the db on dev1, and there was over 49,000 records w/ a null inventory_maint_policy_id in inventory table. All but 6 of these are the 'dummy' inventory record we use to tie all items together (the type_code = '' ones).
So what I'll probably do is create a 'fake' inventory_maint_policy record (named 'SYSTEM' or something similar) that the '' inventory records use. If that doesn't seem like a good idea, please let me know!
I'll go ahead and make the schema changes though so it's in the release on Monday (2010/02/22).