Some checks failed
CI / Linux Tests (push) Failing after 5m44s
Store timestamps as strings in the database to fix errors with postgres. Reviewed-on: #1 Co-authored-by: Michael Housh <michael@mhoush.com> Co-committed-by: Michael Housh <michael@mhoush.com>
23 lines
486 B
Swift
23 lines
486 B
Swift
import Dependencies
|
|
import ManualDCore
|
|
|
|
extension DatabaseClient.Migrations: DependencyKey {
|
|
public static let testValue = Self()
|
|
|
|
public static let liveValue = Self(
|
|
all: {
|
|
[
|
|
User.Migrate(),
|
|
User.Token.Migrate(),
|
|
User.Profile.Migrate(),
|
|
Project.Migrate(),
|
|
ComponentPressureLoss.Migrate(),
|
|
EquipmentInfo.Migrate(),
|
|
Room.Migrate(),
|
|
EquivalentLength.Migrate(),
|
|
TrunkSize.Migrate(),
|
|
]
|
|
}
|
|
)
|
|
}
|