diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate
index dd482e0..00ce930 100644
Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/Fueling.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/Fueling.xcscheme
new file mode 100644
index 0000000..15823a1
--- /dev/null
+++ b/.swiftpm/xcode/xcshareddata/xcschemes/Fueling.xcscheme
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/.swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
index f2053fc..d67248b 100644
--- a/.swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+++ b/.swiftpm/xcode/xcuserdata/mcarman.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -404,5 +404,21 @@
landmarkType = "7">
+
+
+
+
diff --git a/Sources/App/Migrations/CreateFuelEntry.swift b/Sources/App/Migrations/CreateFuelEntry.swift
index 359e292..f2de41e 100755
--- a/Sources/App/Migrations/CreateFuelEntry.swift
+++ b/Sources/App/Migrations/CreateFuelEntry.swift
@@ -112,14 +112,21 @@ struct AddUniqueIDFiled: AsyncMigration {
struct ChangeUniqueIDFiled: AsyncMigration {
func prepare(on database: Database) async throws {
- try await database.schema("fuel_entries")
- .updateField("unique_id", .string)
- .update()
+ do {
+ try await database.schema("fuel_entries")
+ .deleteField("unique_id")
+ .field("unique_id", .string)
+ .update()
+ } catch {
+ throw error
+ }
+
}
func revert(on database: Database) async throws {
try await database.schema("fuel_entries")
- .updateField("unique_id", .uuid)
+ .deleteField("unique_id")
+ .field("unique_id", .uuid)
.update()
}
}