hasura / hasura/graphql-engine

Migrations are marked as apply but they aren't applied.

Open
#10,139 1 comment 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

This is a very serious issue, since we need to go through PROD and now have to verify that all the migrations that ran previously are actually applied or not.

### Version Information

Server Version:
v2.35.2-ce.cli-migrations-v3

### Environment
OSS

### What is the current behaviour?
I don't know what is causing it but I have a migration file that creates a view, it is marked as applied every time even on brand new instance but the view is never created.

### What is the expected behaviour?
Either the migration should fail or if it ran and is marked as applied then the view should exist.

### How to reproduce the issue?
I have no clue what is causing the issue since other migrations are running successfully.

### Any possible solutions/workarounds you're aware of?
Copy the same migration file and creating a new one.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is identified in the report, and the reproduction is incomplete. Start by locating the migration runner and reproducing a fresh-instance migration that creates a view. Done means the migration either fails visibly or leaves the recorded applied state consistent with the view's existence.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.