Files
photoview/api/database/migrations/005_utf8_migration.up.sql
viktorstrate a65a7bc289 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.
2020-03-10 19:03:40 +01:00

10 lines
683 B
SQL

-- 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;