fix: Set wp_models sequence to BigInt

This commit is contained in:
db0 authored and Divided by Zer0 committed 2026-08-06 12:36:40 +02:00
1 parent 79884a311d
commit fbd5ed465e
5 files changed
+15 -10

No files matched your search

+8 -8
View File
@@ -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:
+1 -1
View File
@@ -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"),
+1 -1
View File
@@ -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 = {
+2
View File
@@ -0,0 +1,2 @@
ALTER TABLE wp_models ALTER COLUMN id TYPE BIGINT;
ALTER SEQUENCE wp_models_id_seq AS BIGINT;
+3
View File
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: Konstantinos Thoukydidis <mail@dbzer0.com>
SPDX-License-Identifier: AGPL-3.0-or-later