Skip to content

Instructions for fixing Postgres migration failed with message: migration 20251217184547 was previously applied but is missing in the resolved migrations #5367

@GabrielBianconi

Description

@GabrielBianconi

Important

This issue is only relevant if you ran TensorZero Gateway version 2025.12.4 with Postgres enabled. Other deployments are not affected.

For a brief moment (~30min), we accidentally released a broken version of TensorZero (2025.12.4). This version is now yanked. If you ran the gateway with Postgres enabled, your database is in an inconsistent state. No data is lost.

To fix this error, please run the following SQL query against your Postgres database and restart your gateway:

DROP TABLE __durable_sqlx_migrations;
DROP TABLE durable.c_evaluations_topk;
DROP TABLE durable.e_evaluations_topk;
DROP TABLE durable.queues;
DROP TABLE durable.r_evaluations_topk;
DROP TABLE durable.t_evaluations_topk;
DROP TABLE durable.w_evaluations_topk;

Please contact us on Slack or Discord if any issues persist. Sorry for the incovenience!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions