Make one of the P3014 errors into P3019
@@ -174,18 +174,6 @@ impl crate::UserFacingError for ShadowDbCreationError {
}
}
-#[derive(Debug, Serialize, UserFacingError)]
-#[user_facing(
- code = "P3014",
- message = "The datasource provider `{provider}` specified in your schema does not match the one specified in the migration_lock.toml, `{expected_provider}`. Please remove your current migration directory and start a new migration history with prisma migrate dev. Read more: https://pris.ly/d/migrate-provider-switch"
-)]
-pub struct ProviderSwitchedError {
- /// The provider specified in the schema.
- pub provider: String,
- /// The provider from migrate.lock
- pub expected_provider: String,
-}
-
#[derive(Debug, Serialize, UserFacingError)]
#[user_facing(
code = "P3015",
@@ -250,6 +238,18 @@ pub struct ApplyMigrationError {
pub database_error: String,
}
+#[derive(Debug, Serialize, UserFacingError)]
+#[user_facing(
+ code = "P3019",
+ message = "The datasource provider `{provider}` specified in your schema does not match the one specified in the migration_lock.toml, `{expected_provider}`. Please remove your current migration directory and start a new migration history with prisma migrate dev. Read more: https://pris.ly/d/migrate-provider-switch"
+)]
+pub struct ProviderSwitchedError {
+ /// The provider specified in the schema.
+ pub provider: String,
+ /// The provider from migrate.lock
+ pub expected_provider: String,
+}
+
#[cfg(test)]
mod tests {
use super::*;
