first with full handle over rpm
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
7948368573
commit
274ea454dd
50 changed files with 4309 additions and 0 deletions
18
internal/store/migrations/000003_sync.up.sql
Normal file
18
internal/store/migrations/000003_sync.up.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
ALTER TABLE repos ADD COLUMN sync_mode TEXT NOT NULL DEFAULT 'auto'
|
||||
CHECK(sync_mode IN ('auto', 'manual'));
|
||||
|
||||
CREATE TABLE IF NOT EXISTS pending_packages (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
repo_id INTEGER NOT NULL REFERENCES repos(id) ON DELETE CASCADE,
|
||||
name TEXT NOT NULL,
|
||||
version TEXT NOT NULL,
|
||||
arch TEXT NOT NULL,
|
||||
location TEXT NOT NULL,
|
||||
checksum TEXT NOT NULL,
|
||||
checksum_type TEXT NOT NULL,
|
||||
size INTEGER NOT NULL DEFAULT 0,
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
UNIQUE(repo_id, name, version, arch)
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_pending_packages_repo_id ON pending_packages(repo_id);
|
||||
Loading…
Add table
Add a link
Reference in a new issue