-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use async_trait::async_trait; | ||
use emver::VersionRange; | ||
use sqlx::PgPool; | ||
|
||
use super::v0_3_4::V0_3_0_COMPAT; | ||
use super::{v0_3_5, VersionT}; | ||
use crate::prelude::*; | ||
|
||
const V0_3_5_2: emver::Version = emver::Version::new(0, 3, 5, 2); | ||
|
||
#[derive(Clone, Debug)] | ||
pub struct Version; | ||
|
||
#[async_trait] | ||
impl VersionT for Version { | ||
type Previous = v0_3_5_1::Version; | ||
fn new() -> Self { | ||
Version | ||
} | ||
fn semver(&self) -> emver::Version { | ||
V0_3_5_2 | ||
} | ||
fn compat(&self) -> &'static VersionRange { | ||
&V0_3_0_COMPAT | ||
} | ||
async fn up(&self, _db: PatchDb, _secrets: &PgPool) -> Result<(), Error> { | ||
Ok(()) | ||
} | ||
async fn down(&self, _db: PatchDb, _secrets: &PgPool) -> Result<(), Error> { | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters