-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ios): Replace Database with swift-utilities database packages
- Loading branch information
1 parent
813bdc9
commit 9ff2c8c
Showing
84 changed files
with
483 additions
and
564 deletions.
There are no files selected for viewing
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
56 changes: 0 additions & 56 deletions
56
ios/Approach/Sources/DatabaseLibrary/Migrations/DBMigration.swift
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
ios/Approach/Sources/DatabaseMigrationsLibrary/Migrations.swift
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,42 @@ | ||
import GRDB | ||
import GRDBDatabasePackageLibrary | ||
|
||
public enum Migrations { | ||
public static var approachMigrations: [Migration.Type] { | ||
[ | ||
Migration20230325CreateBowler.self, | ||
Migration20230408CreateAlley.self, | ||
Migration20230408CreateLeague.self, | ||
Migration20230409CreateSeries.self, | ||
Migration20230413CreateGear.self, | ||
Migration20230414CreateGame.self, | ||
Migration20230414CreateFrame.self, | ||
Migration20230415CreateLane.self, | ||
Migration20230417CreateSeriesLanePivot.self, | ||
Migration20230425CreateAvatar.self, | ||
Migration20230426CreateLocation.self, | ||
Migration20230506AddGearToFrame.self, | ||
Migration20230514CreateMatchPlay.self, | ||
Migration20230519AddScoreToGame.self, | ||
Migration20230531GameLanes.self, | ||
Migration20230602AddGearToGame.self, | ||
Migration20230630CreateStatisticsWidget.self, | ||
Migration20230912CreateBowlerPreferredGear.self, | ||
Migration20230913AddAvatarToGear.self, | ||
Migration20230918ChangeWidgetSourceToColumns.self, | ||
Migration20230918OnDeleteGearBowlerSetNull.self, | ||
Migration20230918MigrateStatisticsWidgetType.self, | ||
Migration20230920ValidateGameScores.self, | ||
Migration20231002ValidateGameScores.self, | ||
Migration20231022IsArchivedProperty.self, | ||
Migration20231022DropSeriesNumberOfGames.self, | ||
Migration20231023AddArchivePropertyToGame.self, | ||
Migration20231024IsArchivedToArchivedOn.self, | ||
Migration20231128AddDurationToGame.self, | ||
Migration20231220MigrateRecurringLeagues.self, | ||
Migration20231220RenameLeagueNumberOfGames.self, | ||
Migration20240322AddBowledOnDateToSeries.self, | ||
Migration20240329ClearExtraRolledBalls.self, | ||
] | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...tions/Migration20230325CreateBowler.swift → ...tions/Migration20230325CreateBowler.swift
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
3 changes: 2 additions & 1 deletion
3
...ations/Migration20230408CreateAlley.swift → ...ations/Migration20230408CreateAlley.swift
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
3 changes: 2 additions & 1 deletion
3
...tions/Migration20230408CreateLeague.swift → ...tions/Migration20230408CreateLeague.swift
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
3 changes: 2 additions & 1 deletion
3
...tions/Migration20230409CreateSeries.swift → ...tions/Migration20230409CreateSeries.swift
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
3 changes: 2 additions & 1 deletion
3
...rations/Migration20230413CreateGear.swift → ...rations/Migration20230413CreateGear.swift
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
3 changes: 2 additions & 1 deletion
3
...ations/Migration20230414CreateFrame.swift → ...ations/Migration20230414CreateFrame.swift
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
3 changes: 2 additions & 1 deletion
3
...rations/Migration20230414CreateGame.swift → ...rations/Migration20230414CreateGame.swift
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
3 changes: 2 additions & 1 deletion
3
...rations/Migration20230415CreateLane.swift → ...rations/Migration20230415CreateLane.swift
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
3 changes: 2 additions & 1 deletion
3
...ration20230416CreateSeriesLanePivot.swift → ...ration20230416CreateSeriesLanePivot.swift
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
3 changes: 2 additions & 1 deletion
3
...tions/Migration20230425CreateAvatar.swift → ...tions/Migration20230425CreateAvatar.swift
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
3 changes: 2 additions & 1 deletion
3
...ons/Migration20230426CreateLocation.swift → ...ons/Migration20230426CreateLocation.swift
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
3 changes: 2 additions & 1 deletion
3
...ons/Migration20230506AddGearToFrame.swift → ...ons/Migration20230506AddGearToFrame.swift
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
3 changes: 2 additions & 1 deletion
3
...ns/Migration20230514CreateMatchPlay.swift → ...ns/Migration20230514CreateMatchPlay.swift
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
3 changes: 2 additions & 1 deletion
3
...ons/Migration20230519AddScoreToGame.swift → ...ons/Migration20230519AddScoreToGame.swift
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
3 changes: 2 additions & 1 deletion
3
...grations/Migration20230531GameLanes.swift → ...grations/Migration20230531GameLanes.swift
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
Oops, something went wrong.