Commit Graph

8 Commits

Author SHA1 Message Date
Kostiantyn
f8b9590aa9 Refactoring part 2.1: Long func refactoring in database (#1073)
* Split long functions and optimize code

* Replace `errors.Wrap()` with the `fmt.Errorf()`; rename `process*()` functions to `parse*()`

---------

Co-authored-by: Konstantin Koval
2024-10-04 16:49:41 +03:00
Kostiantyn
d1193c5ca4 Refactoring part 1: Fix some annoying linter warnings in API code (#1064)
* names, constants of reusable strings, removed unneeded `if`, replaced deprecated imports

* more deprecated imports replaced

* What is this?))

* Fix a path and quote a var in Dockerfile

* Addressing review comments

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
2024-09-30 14:45:02 +02:00
Alex Kabakaev
d6f34211a1 fix false trigger of DB migration on sqlite (#936) 2024-04-26 05:46:32 +01:00
viktorstrate
e9a4839f48 Fix Postgres exif flash migration error message
Closes #648
2022-02-13 16:57:20 +01:00
viktorstrate
f3223005b1 Add bigint as correct type for exif migrations 2021-10-02 17:05:47 +02:00
viktorstrate
bbb12003fc Fix #299 and #300 2021-04-13 22:15:47 +02:00
viktorstrate
f8cd804c3d Improve database compatibility
- Make MediaType case insensitive when saved to database
- Null check exif migrations, this might solve #300
2021-04-13 21:39:07 +02:00
viktorstrate
ad60eccf8b Add database migrations for exif values 2021-04-03 21:20:02 +02:00