这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@arvi3411301
Copy link
Member

Description

Something like hasura migrate create --sql-file --metadata-from-server which will create the migration

hasura migrate apply --version xxx --dry-run will add this migration as applied.

Affected components

  • CLI
  • Docs

Related Issues

#1699

Solution and Design

Steps to test and verify

Run hasura migrate create --sql-file test.sql --metadata-from-server http://localhost:8080
The above command will create the migrations under migrations directory.

Now, Run hasura migrate apply --version <version-of-the-migration> --dry-run
This will mark that version as applied in the database.

@arvi3411301 arvi3411301 added s/do-not-merge Do not merge this pull request to master c/cli Related to CLI labels Mar 13, 2019
@arvi3411301 arvi3411301 requested a review from shahidhk March 13, 2019 11:37
@hasura-bot
Copy link
Contributor

Review app for commit 17b238c deployed to Heroku: https://hge-ci-pull-1761.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1761-17b238c

@netlify
Copy link

netlify bot commented Mar 18, 2019

Deploy preview for hasura-docs ready!

Built with commit 657a257

https://deploy-preview-1761--hasura-docs.netlify.com

@hasura-bot
Copy link
Contributor

Review app for commit e67ee51 deployed to Heroku: https://hge-ci-pull-1761.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1761-e67ee51

@shahidhk shahidhk changed the title add a command to create a migration from a sql dump and current server state (close #1699) add options to create migration from files are server (close #1699) Mar 18, 2019
@shahidhk shahidhk removed the s/do-not-merge Do not merge this pull request to master label Mar 18, 2019
@arvi3411301 arvi3411301 requested a review from rikinsk-zz as a code owner March 18, 2019 14:10
@hasura-bot
Copy link
Contributor

Review app for commit 657a257 deployed to Heroku: https://hge-ci-pull-1761.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1761-657a257

@shahidhk shahidhk changed the title add options to create migration from files are server (close #1699) add options to create migration from files from sql and server (close #1699) Mar 18, 2019
@shahidhk shahidhk merged commit 040bef2 into hasura:master Mar 18, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-1761.herokuapp.com is deleted

hasura-bot pushed a commit that referenced this pull request Mar 26, 2025
<!-- The PR description should answer 2 important questions: -->

### What

The goal here is to make DDN easier to deploy and manage, so that
artifacts don't need to be rebuilt and MBS doesn't need to be deployed
in lock-step with engine.

Once we have confidence in this we can start ripping out things from
MBS. Maybe it can disappear entirely.

Context:

https://hasurahq.slack.com/archives/C02G2M3C1T3/p1741734025080149?thread_ts=1740509463.160639&cid=C02G2M3C1T3

<!-- What is this PR trying to accomplish (and why, if it's not
obvious)? -->

<!-- Consider: do we need to add a changelog entry? -->

<!-- Does this PR introduce new validation that might break old builds?
-->

<!-- Consider: do we need to put new checks behind a flag? -->

### How

<!-- How is it trying to accomplish it (what are the implementation
steps)? -->

V3_GIT_ORIGIN_REV_ID: 619ff8f2060819956260257b1359bc49b4978ee2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/cli Related to CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants