{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Apply a database migration","properties":{"path":{"type":"object","properties":{"ref":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","type":"string","examples":["abcdefghijklmnopqrst"],"description":"Project ref"}},"required":["ref"],"additionalProperties":false},"headers":{"type":"object","properties":{"Idempotency-Key":{"type":"string","description":"A unique key to ensure the same migration is tracked only once."}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/V1CreateMigrationBody"}},"required":["path","body"],"additionalProperties":false,"definitions":{"V1CreateMigrationBody":{"type":"object","properties":{"query":{"type":"string","minLength":1},"name":{"type":"string"},"rollback":{"type":"string"}},"required":["query"],"examples":[{"query":"create table public.widgets(id bigint primary key);","name":"create_widgets_table","rollback":"drop table if exists public.widgets;"}]}}},"name":"Apply a database migration","id":"supabase.v1-apply-a-migration","example":{"path":{"ref":"abcdefghijklmnopqrst"},"body":{"query":"create table public.widgets(id bigint primary key);","name":"create_widgets_table","rollback":"drop table if exists public.widgets;"}},"maxRequests":1,"summary":false}}