forked from importers/git-importer
Add another table to store linked_revs
We need to create fake revisions when packages were touched that are linked themselves
This commit is contained in:
11
lib/db.py
11
lib/db.py
@@ -163,8 +163,17 @@ class DB:
|
||||
)
|
||||
""",
|
||||
"UPDATE scheme SET version=13",
|
||||
),
|
||||
schemes[14] = (
|
||||
"""
|
||||
CREATE TABLE linked_revs (
|
||||
id SERIAL PRIMARY KEY,
|
||||
revision_id INTEGER NOT NULL,
|
||||
linked_id INTEGER NOT NULL
|
||||
)
|
||||
""",
|
||||
"UPDATE scheme SET version=14",
|
||||
)
|
||||
|
||||
schema_version = self.schema_version()
|
||||
if (schema_version + 1) not in schemes:
|
||||
return
|
||||
|
Reference in New Issue
Block a user