1
Fork 0
photoview/api
stz184 f88fa33e5f InnoDB has a maximum index length of 767 bytes for tables that use COMPACT or REDUNDANT row format, so for utf8mb3 or utf8mb4 columns, you can index a maximum of 255 or 191 characters, respectively.
That's why I created a new column storing a MD5 hash of the path and made it unique. The MD5 hash has only 32 characters and can be generated natively in MySQL and MariaDB. It helps us to avoid maximum key length and in the same time enforce unique photo and album paths.

- Added path_hash column to photo and album tables
- Added down migration file for 005_utf8_migration (just for consistency)
- Added PathHash field to Album and Photo struct
- album_scanner.go and photo_scanner.goo perform checks by MD5 hash now
2020-06-24 11:43:20 +03:00
..
.vscode Work towards subscriptions 2020-02-21 16:50:50 +01:00
database InnoDB has a maximum index length of 767 bytes for tables that use COMPACT or REDUNDANT row format, so for utf8mb3 or utf8mb4 columns, you can index a maximum of 255 or 191 characters, respectively. 2020-06-24 11:43:20 +03:00
graphql InnoDB has a maximum index length of 767 bytes for tables that use COMPACT or REDUNDANT row format, so for utf8mb3 or utf8mb4 columns, you can index a maximum of 255 or 191 characters, respectively. 2020-06-24 11:43:20 +03:00
routes Move spa handler to a separate file 2020-04-06 22:21:58 +02:00
scanner InnoDB has a maximum index length of 767 bytes for tables that use COMPACT or REDUNDANT row format, so for utf8mb3 or utf8mb4 columns, you can index a maximum of 255 or 191 characters, respectively. 2020-06-24 11:43:20 +03:00
server Rewrite environment variable configurations 2020-04-06 22:16:25 +02:00
utils Rewrite environment variable configurations 2020-04-06 22:16:25 +02:00
example.env Rewrite environment variable configurations 2020-04-06 22:16:25 +02:00
go.mod Integrate executable worker, still working on darktable 2020-05-15 16:36:02 +02:00
go.sum Add replace debounce with throttle 2020-03-12 13:26:11 +01:00
gqlgen.yml Add exif parsing 2020-02-24 23:30:08 +01:00
server.go Add defaults for more env variables in Dockerfile 2020-04-30 14:59:29 +02:00