graphql-engine/server/src-rsr/migrations/44_to_43.sql
Lyndon Maydwell 59c01786fe Optimistic Metadata Locking
Add optimistic concurrency control to the ‘replace_metadata’ call.

Prevents users from submitting out-of-date metadata to metadata-mutating APIs.

See https://github.com/hasura/graphql-engine-mono/issues/472 for details.

GitOrigin-RevId: 5f220f347a3eba288a9098b01e9913ffd7e38166
2021-02-19 02:40:23 +00:00

5 lines
140 B
SQL

-- This migration enables metadata versioning
-- Drops version column
ALTER TABLE hdb_catalog.hdb_metadata DROP COLUMN "resource_version";