Migrate all database tables to use utf8

Before this, photos and albums with special characters,
would result in a scanner error and would not be imported properly.
This commit is contained in:
viktorstrate
2020-03-10 19:03:40 +01:00
parent 5b5ac5bbbd
commit a65a7bc289

View File

@@ -0,0 +1,9 @@
-- Migrate all tables in database to use utf8 for better language support
ALTER TABLE access_token CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE album CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE photo CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE photo_exif CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE photo_url CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE share_token CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE site_info CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE user CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;