Apply migration
apply_migrationFull Description
Applies a migration to the database. Use this when executing DDL operations. Do not hardcode references to generated IDs in data migrations. Destructive statements may require the user to confirm before they run. Never read server-side files or run OS commands via SQL (e.g. COPY ... FROM '/path', COPY ... FROM PROGRAM, pg_read_file, pg_ls_dir, lo_import) — load external data from the client side instead.
Parameters (3 required)
namestringThe name of the migration in snake_case
project_idstringquerystringThe SQL query to apply