Skip to content
Snippets Groups Projects
Verified Commit ed5c39b7 authored by Kevin Morris's avatar Kevin Morris
Browse files

fix(mkpkglists): only check against cache if we're using mysql


MySQL InnoDB offers the AUTO_INCREMENT column inside of
information_schema.tables, but SQLite does not.

For production, we always use MySQL.

Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 22c2ed4d
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !233. Comments created here will be created in the context of that merge request.
...@@ -15,6 +15,9 @@ userfile = aurweb.config.get('mkpkglists', 'userfile') ...@@ -15,6 +15,9 @@ userfile = aurweb.config.get('mkpkglists', 'userfile')
def should_update(tablename: str) -> int: def should_update(tablename: str) -> int:
if aurweb.config.get("database", "backend") != "mysql":
return True
conn = aurweb.db.Connection() conn = aurweb.db.Connection()
db_name = aurweb.config.get("database", "name") db_name = aurweb.config.get("database", "name")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment