first try - soesnt work

This commit is contained in:
6543 2019-05-15 11:30:25 +02:00
parent 9f1609495f
commit 951b489c46

View File

@ -46,6 +46,10 @@ function main() {
db_query "DELETE From File WHERE (Size=0 OR Size IS NULL OR MD5='' OR MD5 IS NULL OR Name='') AND (TTSync=$TTSYNC_EXIST OR TTSync=$TTSYNC_BACKUP);"
db_query "DELETE FROM File WHERE Folder LIKE 'Clone/%' OR Folder LIKE '.Trash-%';"
#find dublicates !

#Solve SQL ERROR: "Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='"
db_query "ALTER TABLE File CHANGE Name Name TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;"
db_query "ALTER TABLE File CHANGE Folder Folder TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;"
}

#erselle zwei dateilisten