diff --git a/syncstorage/storage/sql/queries_mysql.py b/syncstorage/storage/sql/queries_mysql.py index e6d9174..d0bb7f7 100644 --- a/syncstorage/storage/sql/queries_mysql.py +++ b/syncstorage/storage/sql/queries_mysql.py @@ -8,6 +8,10 @@ tailored to MySQL. """ +INIT_COLLECTION = "INSERT IGNORE INTO user_collections "\ + "(userid, collection, last_modified) "\ + "VALUES (:userid, :collectionid, :modified)" + # MySQL's non-standard DELETE ORDER BY LIMIT is incredibly useful here. PURGE_SOME_EXPIRED_ITEMS = """