graphql-engine/cli/commands
Kali Vara Purushotham Santhati 5e92ce028e cli: migrate delete command, update migration state on server after squash
It contains 2 flags

all   -  To delete all migrations locally and on database
version - To delete a single migration locally and on database

Usage :
`hasura migrate delete --all`
`hasura migrate delete --version <version_number>`

Additional fix :
The `migrate squash`  will deletes the migration history on server after squashing if user opts to delete the migrations.

closes https://github.com/hasura/graphql-engine-mono/issues/292
closes https://github.com/hasura/graphql-engine/issues/5373
closes https://github.com/hasura/graphql-engine/issues/6434

Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: fa7ceae7a1970d6724fb601a147900e880ad2e6f
2021-05-24 02:34:33 +00:00
..
testdata/config-v2-test-project cli: fix applying migrations in a different environment after config v3 update 2021-05-17 15:20:08 +00:00
actions_codegen_test.go cli: migrate delete command, update migration state on server after squash 2021-05-24 02:34:33 +00:00
actions_codegen.go cli: separate action operations from migrate driver 2021-04-12 17:28:32 +00:00
actions_create_test.go cli: e2e tests for actions and seeds commands 2021-04-13 08:23:57 +00:00
actions_create.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
actions_use_codegen_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
actions_use_codegen.go cli: update cli help texts and docs generation 2021-03-15 15:41:54 +00:00
actions.go cli: update cli help texts and docs generation 2021-03-15 15:41:54 +00:00
commands_test.go cli, ci: enables docker based tests 2021-05-17 00:30:08 +00:00
completion.go docs: update bash_completion directory typo (#5418) 2020-08-18 10:12:58 +02:00
console.go cli: update console assets buckets selection 2021-05-04 12:00:12 +00:00
docs.go cli: update cli help texts and docs generation 2021-03-15 15:41:54 +00:00
help.go cli: manage seed migrations as sql files (close #2431) (#3763) 2020-06-16 17:45:04 +05:30
init.go Minor grammar tweak on init command errors (exist -> exists) 2021-05-04 16:36:50 +00:00
metadata_apply_test.go cli, ci: enables docker based tests 2021-05-17 00:30:08 +00:00
metadata_apply.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_clear_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_clear.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_diff_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_diff.go cli: (regression) fix behaviour of metadata apply --dry-run flag 2021-04-21 08:22:47 +00:00
metadata_export_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_export.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_inconsistency_drop_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_inconsistency_drop.go cli: separate the metadata operations from migrate driver 2021-04-01 05:14:17 +00:00
metadata_inconsistency_list_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_inconsistency_list.go cli: separate the metadata operations from migrate driver 2021-04-01 05:14:17 +00:00
metadata_inconsistency_status_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_inconsistency_status.go cli: separate the metadata operations from migrate driver 2021-04-01 05:14:17 +00:00
metadata_inconsistency_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_inconsistency.go cli: update cli help texts and docs generation 2021-03-15 15:41:54 +00:00
metadata_reload_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata_reload.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
metadata.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
migrate_apply_test.go cli: fix applying migrations in a different environment after config v3 update 2021-05-17 15:20:08 +00:00
migrate_apply.go cli: add --all--databases flag on migrate apply 2021-04-01 12:59:20 +00:00
migrate_create_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
migrate_create.go cli: add --all--databases flag on migrate apply 2021-04-01 12:59:20 +00:00
migrate_delete_test.go cli: migrate delete command, update migration state on server after squash 2021-05-24 02:34:33 +00:00
migrate_delete.go cli: migrate delete command, update migration state on server after squash 2021-05-24 02:34:33 +00:00
migrate_squash_test.go cli: migrate delete command, update migration state on server after squash 2021-05-24 02:34:33 +00:00
migrate_squash.go cli: migrate delete command, update migration state on server after squash 2021-05-24 02:34:33 +00:00
migrate_status_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
migrate_status.go cli: add --all--databases flag on migrate apply 2021-04-01 12:59:20 +00:00
migrate.go cli: migrate delete command, update migration state on server after squash 2021-05-24 02:34:33 +00:00
plugins_install.go cli: fix tests failing in local dev environment (#4729) 2020-06-03 14:01:40 +05:30
plugins_list.go cli: add support for multiple versions of plugin (close #4105) (#4135) 2020-04-07 19:42:14 +05:30
plugins_uninstall.go cli: allow managing actions (#3859) 2020-02-24 21:44:46 +05:30
plugins_upgrade.go cli: add support for multiple versions of plugin (close #4105) (#4135) 2020-04-07 19:42:14 +05:30
plugins.go cli: update cli help texts and docs generation 2021-03-15 15:41:54 +00:00
root.go cli: update cli help texts and docs generation 2021-03-15 15:41:54 +00:00
scripts_update_config_v2.go cli: separate the metadata operations from migrate driver 2021-04-01 05:14:17 +00:00
scripts_update_config_v3_test.go cli: fix applying migrations in a different environment after config v3 update 2021-05-17 15:20:08 +00:00
scripts_update_config_v3.go cli: fix applying migrations in a different environment after config v3 update 2021-05-17 15:20:08 +00:00
scripts.go cli: update cli help texts and docs generation 2021-03-15 15:41:54 +00:00
seed_apply_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
seed_apply.go cli: fix seeds incorrectly being applied to databases 2021-04-01 10:39:53 +00:00
seed_create_test.go cli: metadata apply,export enhancements 2021-05-14 19:09:59 +00:00
seed_create.go cli: fix seeds incorrectly being applied to databases 2021-04-01 10:39:53 +00:00
seed.go cli: add support for bigquery 2021-04-19 07:06:18 +00:00
update-cli.go cli: add version flag in update-cli command (#3996) 2020-03-05 12:25:33 +05:30
version.go cli: allow managing actions (#3859) 2020-02-24 21:44:46 +05:30