diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fcd3b20..0810dd41 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,14 +6,14 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 - hooks: - - id: check-yaml - - id: end-of-file-fixer - - id: trailing-whitespace - - id: mixed-line-ending - args: [--fix=lf] +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - id: mixed-line-ending + args: [--fix=lf] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.12 hooks: diff --git a/horde/classes/base/waiting_prompt.py b/horde/classes/base/waiting_prompt.py index 841893cd..3c7b33bc 100644 --- a/horde/classes/base/waiting_prompt.py +++ b/horde/classes/base/waiting_prompt.py @@ -80,7 +80,7 @@ class WPModels(db.Model): # See WPAllowedWorkers: the pop candidate query and wp_has_valid_workers # probe wp_models per WP through EXISTS subqueries. __table_args__ = (db.Index("ix_wp_models_wp_id_model", "wp_id", "model"),) - id = db.Column(db.Integer, primary_key=True) + id = db.Column(db.BigInteger, primary_key=True) wp_id = db.Column( uuid_column_type(), db.ForeignKey("waiting_prompts.id", ondelete="CASCADE"), diff --git a/horde/consts.py b/horde/consts.py index 441f733c..bbd9f733 100644 --- a/horde/consts.py +++ b/horde/consts.py @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: AGPL-3.0-or-later -HORDE_VERSION = "5.1.3" +HORDE_VERSION = "5.1.5" HORDE_API_VERSION = "2.5" WHITELISTED_SERVICE_IPS = { diff --git a/sql_statements/5.1.5.txt b/sql_statements/5.1.5.txt new file mode 100644 index 00000000..ab7b72c0 --- /dev/null +++ b/sql_statements/5.1.5.txt @@ -0,0 +1,2 @@ +ALTER TABLE wp_models ALTER COLUMN id TYPE BIGINT; +ALTER SEQUENCE wp_models_id_seq AS BIGINT; diff --git a/sql_statements/5.1.5.txt.license b/sql_statements/5.1.5.txt.license new file mode 100644 index 00000000..8140c6e2 --- /dev/null +++ b/sql_statements/5.1.5.txt.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: Konstantinos Thoukydidis + +SPDX-License-Identifier: AGPL-3.0-or-later