NYPL-Simplified / server_core

Shared data model and utilities for Library Simplified server applications
7 stars 11 forks source link

Stop duplicate ConfigurationSetting objects from getting into the database #1235

Closed leonardr closed 3 years ago

leonardr commented 3 years ago

This branch fixes https://jira.nypl.org/browse/SIMPLY-2771 by adding more uniqueness constraints to the configurationsettings table.

I've run the unit tests against an old database migrated using the migration script, and a brand-new database. I've also run the migration script on an already migrated database, and it didn't result in a change to the database.