Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion refinery_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default = []
mysql_async = ["dep:mysql_async"]
postgres = ["dep:postgres", "dep:postgres-native-tls", "dep:native-tls"]
rusqlite-bundled = ["rusqlite", "rusqlite/bundled"]
serde = ["dep:serde"]
serde = ["dep:serde", "time/serde"]
tiberius = ["dep:tiberius", "futures", "tokio", "tokio/net"]
tiberius-config = ["tiberius", "tokio", "tokio-util", "serde"]
tokio-postgres = ["dep:postgres-native-tls", "dep:native-tls", "dep:tokio-postgres", "tokio", "tokio/rt"]
Expand Down
3 changes: 3 additions & 0 deletions refinery_core/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use std::fmt::Formatter;

/// An enum set that represents the type of the Migration
#[derive(Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Type {
Versioned,
Unversioned,
Expand Down Expand Up @@ -51,6 +52,7 @@ pub enum Target {
// an Enum set that represents the state of the migration: Applied on the database,
// or Unapplied yet to be applied on the database
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
enum State {
Applied,
Unapplied,
Expand All @@ -62,6 +64,7 @@ enum State {
///
/// [`embed_migrations!`]: macro.embed_migrations.html
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Migration {
state: State,
name: String,
Expand Down
Loading