diff --git a/tests/common/features/schema.rs b/tests/common/features/schema.rs index 13d69eddb0..a86fbc03c1 100644 --- a/tests/common/features/schema.rs +++ b/tests/common/features/schema.rs @@ -343,12 +343,14 @@ pub async fn create_check_table(db: &DbConn) -> Result { .col( ColumnDef::new(check::Column::UpdatedAt) .timestamp_with_time_zone() - .not_null(), + .not_null() + .extra("DEFAULT CURRENT_TIMESTAMP".to_owned()), ) .col( ColumnDef::new(check::Column::CreatedAt) .timestamp_with_time_zone() - .not_null(), + .not_null() + .extra("DEFAULT CURRENT_TIMESTAMP".to_owned()), ) .to_owned();