hasura / hasura/graphql-engine

Ability to disable migrations and changing DB schema from the Hasura Console

Open
#9,790 0 comments 1 reaction 0 assignees View on GitHub
k/enhancement t/console
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?

Because Hasura's migration system doesn't apply multiple migrations transactionally and generally isn't as nice as purpose-built migrations tools, my company has decided to use other tools to manage our migrations. See https://github.com/hasura/graphql-engine/issues/7166

But since the Hasura Console lets you by default modify the database schema in the UI however you like, we just have to tell our engineers to "pretty please don't touch that", which isn't great.

### Describe the solution you'd like

Some configuration to disable the ability to mutate the database schema directly in the UI. Instead we want to handle migrations separately, then just use `hasura metadata reload` to ensure that changes are present in the UI.

### Describe alternatives you've considered

Making Hasura's migration system better, but given that Hasura intentionally made the system worse over 2 years ago and still hasn't fixed the regression, probably an uphill battle to convince the team that that was a mistake.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by reviewing the Hasura Console controls for direct database-schema changes and existing configuration options, then verify that the proposed setting blocks those changes while `hasura metadata reload` still refreshes the UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, typescript
Domain
database, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.