Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old Migrate API #1475

Merged
merged 33 commits into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c544464
remove apply migration
do4gr Dec 18, 2020
628dd96
remove listmigrations
do4gr Dec 18, 2020
5e9f194
remove calculatedatabasesteps
do4gr Dec 18, 2020
60c490d
remove calculateDatamodel
do4gr Dec 18, 2020
bb573f9
remove inferMigrationSteps
do4gr Dec 18, 2020
32c2950
remove migrationProgress
do4gr Dec 18, 2020
01a7bec
remove unapplyMigrations
do4gr Dec 18, 2020
fea2ab0
remove initialize
do4gr Dec 18, 2020
c1a4242
start removing old migration persistence
do4gr Dec 18, 2020
a8838ec
start removing migrationsteps serialization
do4gr Dec 20, 2020
d0b0c1a
remove steps serialization
do4gr Dec 20, 2020
e2ab790
remove partialeq
do4gr Dec 21, 2020
1a6f626
Ignore postgis tables when checking for initialized schemas
tomhoule Dec 21, 2020
82e51ce
Fix sqlite test
tomhoule Dec 21, 2020
4fc193a
Merge branch 'master' into RemoveOldMigrateApi
do4gr Dec 21, 2020
85cf793
Merge pull request #1478 from prisma/migration-engine/ignore-postgis-…
tomhoule Dec 21, 2020
6a44439
Update windows CI toolchain to 1.48.0
tomhoule Dec 23, 2020
8cbaea5
Merge pull request #1485 from prisma/ci/update-windows-compiler-version
tomhoule Dec 23, 2020
ab41692
remove apply migration
do4gr Dec 18, 2020
3241b8b
remove listmigrations
do4gr Dec 18, 2020
6b0efad
remove calculatedatabasesteps
do4gr Dec 18, 2020
dcd26aa
remove calculateDatamodel
do4gr Dec 18, 2020
fc80991
remove inferMigrationSteps
do4gr Dec 18, 2020
c6eb860
remove migrationProgress
do4gr Dec 18, 2020
44920d0
remove unapplyMigrations
do4gr Dec 18, 2020
7b75ae3
remove initialize
do4gr Dec 18, 2020
1b5efcb
start removing old migration persistence
do4gr Dec 18, 2020
f1f9cd9
start removing migrationsteps serialization
do4gr Dec 20, 2020
e870c84
remove steps serialization
do4gr Dec 20, 2020
10ad555
remove partialeq
do4gr Dec 21, 2020
71ca76c
Fix sqlite test
tomhoule Dec 21, 2020
24d500e
Merge branch 'RemoveOldMigrateApi' of https://github.com/prisma/prism…
do4gr Dec 23, 2020
210e13f
merge fix
do4gr Dec 23, 2020
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 .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions-rs/toolchain@v1
with:
toolchain: 1.46.0
toolchain: 1.48.0
default: true

- uses: actions/cache@v2
Expand Down
18 changes: 0 additions & 18 deletions migration-engine/connectors/migration-connector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ mod destructive_change_checker;
mod error;
pub mod features;
mod imperative_migrations_persistence;
#[allow(missing_docs)]
mod migration_applier;
#[allow(missing_docs)]
mod migration_persistence;

#[allow(missing_docs)]
pub mod steps;
Expand All @@ -26,8 +22,6 @@ pub use features::MigrationFeature;
pub use imperative_migrations_persistence::{
ImperativeMigrationsPersistence, MigrationRecord, PersistenceNotInitializedError, Timestamp,
};
pub use migration_applier::*;
pub use migration_persistence::*;
pub use migrations_directory::{create_migration_directory, list_migrations, ListMigrationsError, MigrationDirectory};
pub use steps::MigrationStep;

Expand Down Expand Up @@ -66,9 +60,6 @@ pub trait MigrationConnector: Send + Sync + 'static {
None
}

/// See [MigrationPersistence](trait.MigrationPersistence.html).
fn migration_persistence(&self) -> &dyn MigrationPersistence;

/// See [ImperativeMigrationPersistence](trait.ImperativeMigrationPersistence.html).
fn new_migration_persistence(&self) -> &dyn ImperativeMigrationsPersistence;

Expand All @@ -80,15 +71,6 @@ pub trait MigrationConnector: Send + Sync + 'static {

/// See [DestructiveChangeChecker](trait.DestructiveChangeChecker.html).
fn destructive_change_checker(&self) -> &dyn DestructiveChangeChecker<Self::DatabaseMigration>;

/// See [MigrationStepApplier](trait.MigrationStepApplier.html).
fn migration_applier<'a>(&'a self) -> Box<dyn MigrationApplier<Self::DatabaseMigration> + Send + Sync + 'a> {
let applier = MigrationApplierImpl {
migration_persistence: self.migration_persistence(),
step_applier: self.database_migration_step_applier(),
};
Box::new(applier)
}
}

/// Marker for the associated migration type for a connector.
Expand Down

This file was deleted.

Loading