Skip to content
  • Carlo Landmeter's avatar
    Split databases into branches/flagged (and various) · 4130d182
    Carlo Landmeter authored and Carlo Landmeter's avatar Carlo Landmeter committed
    - split databases into branches
    - change relation of pkg vs flagged status
    - added migration script to migrate to new flagged table format
    - added new provider_priority field to apk header
    - add settings for default branch and arch
    - make edge the default branch in packages list
    - add SQL debug option in config
    - remove uneeded usage of class
    - move all utils to utils.lua
    - optimize SQL queries
    - re-factor importer script
    - allow to change http listening port via environment
    - linted with luacheck and added .luacheckrc
    
    This commit changes how we handle databases. Instead of having
    everything in a single sqlite database we split each branch into its own
    sqlite database. This will limit the amount of rows in the pkg/file per
    table and improve performance.
    
    Flagged table has been redesigned. This redesign uses a composite index
    (repo,origin,version) so the packages table is now related to this index
    which makes it possible to remove the current flag id col...
    4130d182