This is the second beta for v1.3
. This fixes reported bugs in v1.3.0-beta.1
and few other additions.
Changelog
Manage seed migrations as SQL files
A new seeds
command is introduced in CLI, this will allow managing seed migrations as SQL files
Creating seed
# create a new seed file and use editor to add SQL content
hasura seeds create new_table_seed
# create a new seed by exporting data from tables already present in the database
hasura seeds create table1_seed --from-table table1
# create from data in multiple tables:
hasura seeds create tables_seed --from-table table1 --from-table table2
Applying seed
# apply all seeds on the database:
hasura seeds apply
# apply only a particular seed
hasura seeds apply --file 1234_add_some_seed_data.sql
Other changes
- server: few relay fixes (fix #5020, #5037, #5046) (#5013)
- server: raise error on startup when
--unauthorized-role
is ignored (#4736) - server: fix bug which arises when renaming/dropping a column on a remote relationship (#5005, #5119)
- console: provide option to cascade metadata on dependency conflicts on console (fix #1593)
- console: fix enum tables reload data button UI (#4647)
- console: fix "Cannot read property 'foldable'" runtime error in Browse Rows page (fix #4907) (#5016)
- console: respect read-only mode in actions pages (fix #4656) (#4764)
- console: allow configuring session_argument for custom functions (close #4499) (#4922)
- console: fix listen update column config selection for event trigger (close #5042) (#5043)
- cli: add new flags up-sql and down-sql to generate sql based migrations from the CLI (#5026)
- docs: add page on setting up v2 migrations (close #4746) (#4898)
Using this release
Use the following docker image:
hasura/graphql-engine:v1.3.0-beta.2