aster_forge_db_migration/
lib.rs

1//! Shared `SeaORM` migration coordination and schema helpers for Aster products.
2//!
3//! Products retain their migration lists, history compatibility policy, table definitions, and
4//! data backfills. This crate owns the reusable execution mechanics and migration-only helpers.
5#![cfg_attr(
6    not(test),
7    deny(
8        clippy::unwrap_used,
9        clippy::unreachable,
10        clippy::expect_used,
11        clippy::panic,
12        clippy::unimplemented,
13        clippy::todo
14    )
15)]
16
17mod coordination;
18mod index;
19mod schema;
20mod search;
21
22pub use coordination::{
23    MigrationFuture, MigrationLockOptions, run_migrator_with_lock, with_migration_lock,
24};
25pub use index::{drop_index_if_exists, rename_mysql_index_if_exists};
26pub use schema::{
27    big_integer_primary_key, json_text_column_for_final_schema,
28    nullable_json_text_column_for_backfill, utc_date_time_column, utc_date_time_column_for_backend,
29};
30pub use search::{
31    SqliteFtsConfig, ensure_postgres_extension, execute_sqlite_statements,
32    mysql_fulltext_index_sql, postgres_drop_index, postgres_trigram_index,
33    sqlite_fts_down_statements, sqlite_fts_up_statements,
34};