Contents

shouldMigrateStoreAutomatically

A flag indicating whether the associated persistent store should be migrated automatically.

Declaration

var shouldMigrateStoreAutomatically: Bool { get set }

Discussion

If this is set to false and the store is out of sync, attempting to load the store produces an error. If this is set to true and the store is out of sync, attempting to load the store causes Core Data to attempt a migration. This flag is set to true by default.

See Also

Configuring a Persistent Store Description