Run timestamp_tests for all databases

This commit is contained in:
Billy Chan 2021-12-11 12:36:27 +08:00 committed by Chris Tsang
parent 0f164b62d5
commit a9f6275a9e

View File

@ -4,7 +4,11 @@ pub use common::{features::*, setup::*, TestContext};
use sea_orm::{entity::prelude::*, DatabaseConnection, IntoActiveModel};
#[sea_orm_macros::test]
#[cfg(feature = "sqlx-postgres")]
#[cfg(any(
feature = "sqlx-mysql",
feature = "sqlx-sqlite",
feature = "sqlx-postgres"
))]
async fn main() -> Result<(), DbErr> {
let ctx = TestContext::new("bakery_chain_schema_timestamp_tests").await;
create_tables(&ctx.db).await?;