瀏覽代碼

Fixed migration

master
rpm-mcarman 3 年之前
父節點
當前提交
16c137c44a
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 二進制
      .swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +1
    -1
      Sources/App/Migrations/CreateFuelEntry.swift

二進制
.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate 查看文件


+ 1
- 1
Sources/App/Migrations/CreateFuelEntry.swift 查看文件

@@ -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")


Loading…
取消
儲存