Pārlūkot izejas kodu

Fixed _ to - on the revert on migration

master
rpm-mcarman pirms 3 gadiem
vecāks
revīzija
d641c51326
2 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. Binārs
      .swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +1
    -1
      Sources/App/Migrations/CreateFuelEntry.swift

Binārs
.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate Parādīt failu


+ 1
- 1
Sources/App/Migrations/CreateFuelEntry.swift Parādīt failu

@@ -43,7 +43,7 @@ struct AddLatitudeAndLongitudeAndRemoveGpsLocationAndImage: AsyncMigration {
}

func revert(on database: Database) async throws {
try await database.schema("fuel-entries")
try await database.schema("fuel_entries")
.deleteField("latitude")
.deleteField("longitude")
.field("gps_location", .string)


Notiek ielāde…
Atcelt
Saglabāt