graphql-engine/server/src-rsr/migrations/44_to_45.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
454 B
MySQL
Raw Normal View History

-- This migration adds the schema notification table
--
-- NOTE: In OSS this table only contains a single row (indicated by ID 1).
-- This may change to allow multiple notifications in future.
CREATE TABLE IF NOT EXISTS hdb_catalog.hdb_schema_notifications
(
id INTEGER PRIMARY KEY CHECK (id = 1),
notification JSON NOT NULL,
resource_version INTEGER NOT NULL DEFAULT 1,
instance_id UUID NOT NULL,
updated_at TIMESTAMPTZ DEFAULT NOW()
);