Migration tests moved to a separate directory (#7582)
This commit is contained in:
parent
ee1da09996
commit
25b19835e3
@ -15,8 +15,6 @@
|
|||||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
//! DB Migration module.
|
//! DB Migration module.
|
||||||
#[cfg(test)]
|
|
||||||
mod tests;
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
@ -18,14 +18,18 @@
|
|||||||
//! A random temp directory is created. A database is created within it, and migrations
|
//! A random temp directory is created. A database is created within it, and migrations
|
||||||
//! are performed in temp sub-directories.
|
//! are performed in temp sub-directories.
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
|
extern crate macros;
|
||||||
extern crate tempdir;
|
extern crate tempdir;
|
||||||
|
extern crate kvdb_rocksdb;
|
||||||
|
extern crate migration;
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use self::tempdir::TempDir;
|
use tempdir::TempDir;
|
||||||
use kvdb_rocksdb::Database;
|
use kvdb_rocksdb::Database;
|
||||||
use {Batch, Config, Error, SimpleMigration, Migration, Manager, ChangeColumns};
|
use migration::{Batch, Config, Error, SimpleMigration, Migration, Manager, ChangeColumns};
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn db_path(path: &Path) -> PathBuf {
|
fn db_path(path: &Path) -> PathBuf {
|
Loading…
Reference in New Issue
Block a user