kurtbuilds / ormlite

An ORM in Rust for developers that love SQL.
https://crates.io/crates/ormlite
MIT License
216 stars 11 forks source link

Support migrate #36

Closed kurtbuilds closed 6 months ago

kurtbuilds commented 9 months ago

Running just migrate for this code fails to detect the manual type


#[derive(Debug, Serialize, Deserialize, Clone, Copy, ManualType, sqlx::Type)]
#[serde(rename_all = "snake_case")]
#[cfg_attr(
    target_arch = "wasm32",
    derive(tsify::Tsify),
    tsify(into_wasm_abi, from_wasm_abi)
)]
#[cfg_attr(
    not(target_arch = "wasm32"),
    derive(ormlite::type::ManualType, sqlx::Type)
)]
pub enum Privacy {
    Private,
    Team,
    Public,
}
kurtbuilds commented 6 months ago

This is fixed