1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::MongoDbSchemaConnector;
use schema_connector::{BoxFuture, ConnectorResult, DestructiveChangeChecker, DestructiveChangeDiagnostics, Migration};

impl DestructiveChangeChecker for MongoDbSchemaConnector {
    fn check<'a>(
        &'a mut self,
        _database_migration: &'a Migration,
    ) -> BoxFuture<'a, ConnectorResult<DestructiveChangeDiagnostics>> {
        Box::pin(std::future::ready(Ok(DestructiveChangeDiagnostics::new())))
    }

    fn pure_check(&self, _database_migration: &Migration) -> DestructiveChangeDiagnostics {
        DestructiveChangeDiagnostics::new()
    }
}