Skip to content

Commit

Permalink
iko: Move Version to migration_status
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed May 4, 2022
1 parent 119d1b2 commit 22d9f0d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion iko/src/lib.rs
Expand Up @@ -2,6 +2,5 @@ mod migration_status;
mod migration_status_row;
mod migrator;
mod query;
mod version;

pub use migrator::*;
4 changes: 2 additions & 2 deletions iko/src/migration_status.rs
@@ -1,8 +1,8 @@
mod value;

use crate::version::Version;
mod version;

pub use self::value::Value;
pub use self::version::Version;

#[derive(Debug, Eq, PartialEq, thiserror::Error)]
pub enum Error {
Expand Down
File renamed without changes.
5 changes: 1 addition & 4 deletions iko/src/migration_status_row.rs
Expand Up @@ -2,10 +2,7 @@ use std::str::FromStr;

use sqlx::{any::AnyRow, FromRow, Row};

use crate::{
migration_status::{MigrationStatus, Value},
version::Version,
};
use crate::migration_status::{MigrationStatus, Value, Version};

pub struct MigrationStatusRow {
current_version: i64,
Expand Down
2 changes: 1 addition & 1 deletion iko/src/migrator.rs
@@ -1,7 +1,7 @@
use async_trait::async_trait;
use sqlx::AnyPool;

use crate::{query, version::Version};
use crate::{migration_status::Version, query};

#[async_trait]
pub trait Migration {
Expand Down

0 comments on commit 22d9f0d

Please sign in to comment.