#![expect(clippy::missing_panics_doc, reason = "examples never panic")]
#![expect(clippy::unwrap_used, reason = "intended for tests only")]
use crate::database::schema_manager::{MigrationGroup, UserMigrationRef};
#[inline]
pub fn migration() -> UserMigrationRef<'static, 'static> {
UserMigrationRef::from_user_parts(
&[],
"create_author",
None,
[
"CREATE TABLE author (id INT NOT NULL PRIMARY KEY, name VARCHAR(50) NOT NULL)",
"DROP TABLE author",
],
1,
)
.unwrap()
}
#[inline]
pub fn migration_group() -> MigrationGroup<&'static str> {
MigrationGroup::new("initial", 1)
}