2.29.00 Database Changes

Contents Show

Changes made to the SPIRIT WIC database in this release of the software are detailed below.

CDP-223

The user ID size was changed from "10" to "20" in the uspGetParticipantsForBatchPreprocess and uspGetParticipantsForBatch stored procedures.

ENH-533

A new 2.29.00.asql file was created and distributed with this release. When run, the new 2.29.00.asql file performs the following tasks:

The new 2.29.00.asql file includes different scripts that perform various updates for the 2.29.00 software release. Risk factor scripts included within the 2.29.00.asql file perform a check to determine if the state agency is Minnesota. If the current agency is MN, the risk factor scripts within the new 2.29.00.asql file do not run during the 2.29 software upgrade process.

A new RF135_352_pull_off_script.sql file was created and distributed with this release. When run, the new RF135_352_pull_off_script.sql file deletes the outdated risk factors on the target (Production) database and re-inserts the risk factors from the source (UAT) database. Run the script on the source (UAT) database to generate and insert the scripts, then copy the generated scripts and run them on the target (Production) DB.

Some states may have an extra constraint on the FOODPACKAGEID column of the RISKFACTORREFERENCE table. If your state currently has an FK constraint on the FOODPACKAGEID column of the RISKFACTORREFERENCE table, the script below MUST be run manually on the database. Failure to run the script below in states that currently have an FK constraint on the FOODPACKAGEID column of the RISKFACTORREFERENCE table will cause problems with this release of the software.

IF EXISTS (SELECT * FROM sys.foreign_keys

WHERE object_id = OBJECT_ID(N'FK_RISKFACTORREF_PRIORITYWICSTS')

AND parent_object_id = OBJECT_ID(N'RISKFACTORREFERENCE')

)

ALTER TABLE [dbo].[RISKFACTORREFERENCE]

DROP CONSTRAINT [FK_RISKFACTORREF_PRIORITYWICSTS]

IF EXISTS (SELECT * FROM sys.foreign_keys

WHERE object_id = OBJECT_ID(N'FK_RISKFACTORREF_FOODPKG')

AND parent_object_id = OBJECT_ID(N'RISKFACTORREFERENCE')

)

ALTER TABLE [dbo].[RISKFACTORREFERENCE]

DROP CONSTRAINT [FK_RISKFACTORREF_FOODPKG]

ALTER TABLE [dbo].[RISKFACTORREFERENCE]

ALTER COLUMN [ASSIGNMENTRESTRICTION] CHAR (1) NULL

ENH-536

The uspVendorAddNewPriceListItems stored procedure was modified to remove loops and to run instantly to increase performance.