hasura / hasura/graphql-engine

Schema is not updated after migration

Open
#7,574 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

### Version Information

Server Version: v2.0.9-cloud.

### Environment

Cloud

### What is the expected behaviour?

Update schema after migrations

### Keywords

Custom field, schema, introspection

### What is the current behaviour?

last migration is:

```sql
-- down
ALTER TABLE "public"."wod" ALTER COLUMN "name" TYPE citext;

-- up
ALTER TABLE "public"."wod" ALTER COLUMN "name" TYPE varchar(128);
```

The schema should be `String`, but it continues to be `citext` see the screen shot below.

It happens for 2 of my tables.

### Screenshots or Screencast

![Captura de Tela 2021-09-17 às 21 03 33](https://user-images.githubusercontent.com/39778068/133864835-171d658a-0753-49c8-8391-833a69d37747.png)

![Captura de Tela 2021-09-17 às 21 04 18](https://user-images.githubusercontent.com/39778068/133864867-8d5aba6f-ce9e-41e7-be5d-33623d8c88c2.png)

### Possible solution

Tried reloading metadata, but didn't work.

### Works locally, but not on Cloud

👆

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.