Skip to content

Orion-v3.4.0

Compare
Choose a tag to compare
@zeeshanakram3 zeeshanakram3 released this 17 Feb 17:24
· 29 commits to master since this release
52333e9

Schema changes

  • Added @schema(name: "admin") directive to hide entities (from public GRAPHQL API) in Graphql schema definitions.

Misc

  • Patch @subsquid/typeorm-config & @subsquid/typeorm-migration packages to change squid-typeorm-migration apply command to apply a single migrations file too using --filename option instead of applying the whole db/migrations directory.
  • Patch @subsquid/openreader and @subsquid/typeorm-codegen dependencies to include the db schema name too in the generated typeorm/postgres migrations, and an optional schema directive to specify the schema of any GRAPHQL entity.

DB Migrations

  • Update generate-migrations makefile command. Now the existing *-Data.js will not be overwritten, instead a new *-Data.js migration file (containing only changes compared to the previous DB state) will be added whenever there are GRAPHQL schema changes. The *-Views.js migration file will also be updated whenever the GRAPHQL schema changes.
  • Create generateViewsMigration.js script to create new *-Views.js migration file.
  • Separate the view definitions(in db/viewDefinitions.js) from views migration file(*-Views.js).
  • Add *-Admin.js migration file to create an admin schema & user, previously the admin schema and user was being created in the *-Views.js migration.
  • Regenerate the postgres db migrations.

Documentation