{"id":24888674,"url":"https://github.com/eesast/hasura","last_synced_at":"2025-07-24T02:31:40.652Z","repository":{"id":37184881,"uuid":"305954462","full_name":"eesast/hasura","owner":"eesast","description":"Hasura metadata \u0026 migration file for EESAST","archived":false,"fork":false,"pushed_at":"2025-06-17T17:19:12.000Z","size":421,"stargazers_count":0,"open_issues_count":3,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-17T18:27:26.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eesast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-10-21T08:14:33.000Z","updated_at":"2025-06-17T17:18:24.000Z","dependencies_parsed_at":"2023-10-16T03:48:49.810Z","dependency_job_id":"c8a5c9c3-d8d9-40db-a346-82fffd770e97","html_url":"https://github.com/eesast/hasura","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eesast/hasura","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eesast%2Fhasura","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eesast%2Fhasura/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eesast%2Fhasura/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eesast%2Fhasura/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eesast","download_url":"https://codeload.github.com/eesast/hasura/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eesast%2Fhasura/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266785449,"owners_count":23983821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-01T16:14:33.396Z","updated_at":"2025-07-24T02:31:40.626Z","avatar_url":"https://github.com/eesast.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EESAST Hasura\n\nEESAST Hasura migrations and metadata files\n\n## 开发\n\n[![Build Status](https://travis-ci.com/eesast/hasura.svg?branch=master)](https://travis-ci.com/eesast/hasura)\n\n### 环境\n\n- Node.js npm / yarn: Use hasura-cli to manage\n- Docker [Get \u0026 Install](https://docs.docker.com/get-docker/)\n\n### 工具\n\n- git\n- any terminal or vscode\n\n### 使用\n\n使用 EESAST 服务器上的 `hasura-dev` 时，需在本地的 `.env` 中添加相应的 `HASURA_GRAPHQL_ENDPOINT` 和 `HASURA_GRAPHQL_ADMIN_SECRET`\n\n其他环境变量含义见[hasura-cli config-reference](https://hasura.io/docs/1.0/graphql/core/hasura-cli/config-reference.html)\n\n### 脚本\n\n围绕 Hasura CLI 展开，参看[文档](https://hasura.io/docs/1.0/graphql/core/hasura-cli/index.html)\n\n\u003e 使用 Hasura CLI 启动的 console 页面会记录所有更改，请务必不要使用 docker 自带的 console（`docker-compose.yaml`中已禁用该功能）\n\n#### `apply`\n\n将仓库中的 migrations 和 metadata 应用在本地 docker 中运行的 Hasura 和 postgres 上\n\n第一次部署 docker 后执行此指令可能会有报错 `FatalError: function \\\"set_current_timestamp_s with same argument types\"`，请先使用 `console`，在其中的 `Data-SQL`处执行 `DROP FUNCTION public.set_current_timestamp_updated_at;`。此方案可能不一定可以解决问题，参看 [hasura/graphql-engine:issues#3633](https://github.com/hasura/graphql-engine/issues/3633)\n\n#### `console`\n\n打开 Hasura console\n\n#### `hasura`\n\n用作执行一般的 hasura-cli 指令，也可以替代另外几个\n\n```\nyarn hasura [command] =\u003e hasura [command]\n```\n\n#### `migrate-squash`\n\n\"hasura migrate squash\" 的替代，用来将多次改动合并为“一次”\n\n```\nhasura migrate squash --name \"\u003cfeature-name\u003e\" --from \u003cstart-migration-version\u003e\n\n# note down the version\n\n# mark the squashed migration as applied on this server\nhasura migrate apply --version \"\u003csquash-migration-version\u003e\" --skip-execution\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feesast%2Fhasura","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feesast%2Fhasura","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feesast%2Fhasura/lists"}