[EDIT] This was posted previously but since it was my first post (on the new IBM profile) wasn't made visible until it was approved and I had forgotten that I responded. [END EDIT]
Yes. If a field is flagged as required and has a default value, Maximo will add the default value to all the existing records. It sounds like yours was a YORN which will always be required in the database.
I can't remember if Maximo would do that on new attributes that are not flagged as required. I also would not expect it to do it on any of the dynamic variables (IE &SYSDATE&, &PERSONID&, etc.) because they wouldn't be able to accurately retrieve that for the records.
------------------------------
Steven Shull
------------------------------
Original Message:
Sent: Fri July 16, 2021 10:00 AM
From: User1971
Subject: New field: Default value back-populates existing rows
MAM 7.6.1.2; Oracle 19c:
I've added a new ACTIVE field to CLASSSTRUCTURE (see: Hide Inactive Classifications From Users).
When adding the field in Database Configuration, I specified a default value of 1.
After applying the changes, I noticed that existing rows in CLASSSTRUCTURE were automatically populated with that default value. That's actually pretty handy. I thought I was going to need to get my DBA to run an UPDATE statement to back-populate existing rows. But it turns out that's not needed.
Question:
Did Maximo back-populate the existing rows with the default value, or is that OOB Oracle functionality?
Thanks.
#Maximo
#AssetandFacilitiesManagement