Foundation: Prepare application code to read from detached table
Description
We need to find a way to use a detached table instead of packages_packages table for specific packages models.
As a primary case, we shouldn't rely for filtering package format on package_type column in the packages_packages table and instead use a dedicated package model.
To avoid any surprises it should work well with the feature flag.
Proposal
- We need to examine all usages of
package_typeand refactor the code to use a dedicated package model instead.
Edited by Dzmitry (Dima) Meshcharakou