HexdocsMcp.Migrations (HexDocs MCP v0.6.0)

View Source

Shared migrations that can be used in regular migrations and tests.

This provides a consistent way to create database structure both during regular migrations and in test environments.

Summary

Functions

Creates the embeddings table.

Drops the embeddings table.

Updates the embeddings table schema to ensure all required columns exist.

Functions

create_embeddings_table(opts \\ [])

Creates the embeddings table.

Options

  • :prefix - The prefix to run the migrations in

drop_embeddings_table(opts \\ [])

Drops the embeddings table.

Options

  • :prefix - The prefix to run the migrations in

update_embeddings_table()

Updates the embeddings table schema to ensure all required columns exist.

This should be called on application start to ensure the database schema is up-to-date.