소스 검색

Fixed migration

master
rpm-mcarman 3 년 전
부모
커밋
16c137c44a
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 파일 보기


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


불러오는 중...
취소
저장