You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, standardize internal usage of collection_key to collection_code.
This helps clarify that Collection.key is *not* an OpaqueKey, but is rather
a local slug, which can be combined with other identifiers to form a fully-
qualified LibraryCollectionKey instance.
BREAKING CHANGE: Collection.key has been renamed to Collection.collection_code.
The underlying database field is still named _key.
BREAKING CHANGE: Collection.collection_code now validates that its contents
matches '[A-Za-z0-9\-\_\.]+'. This was already effectively true, because
LibraryCollectionKey can only be built with slug-like parts, but we now
enforce it at the db level.
Part of: #322
TODO: Fix backup/restore, with backcompat for `key`
TODO: Should migrations be updated or left alone?
TODO: Should the column stay as _key or change?
0 commit comments