Selaa lähdekoodia

Fixed migration

master
rpm-mcarman 3 vuotta sitten
vanhempi
commit
16c137c44a
2 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. BIN
      .swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +1
    -1
      Sources/App/Migrations/CreateFuelEntry.swift

BIN
.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate Näytä tiedosto


+ 1
- 1
Sources/App/Migrations/CreateFuelEntry.swift Näytä tiedosto

@@ -34,7 +34,7 @@ struct CreateFuelEntry: AsyncMigration {

struct AddLatitudeAndLongitudeAndRemoveGpsLocationAndImage: AsyncMigration {
func prepare(on database: Database) async throws {
try await database.schema("fuel-entries")
try await database.schema("fuel_entries")
.field("latitude", .double)
.field("longitude", .double)
.deleteField("gps_location")


Ladataan…
Peruuta
Tallenna