chyrp/chyrp — pull request #233 by xenocrat (2014-12-19 00:21:44+00:00)
Title: Likes: bug fix – check for keys before creating

The likes module might have been enabled previously and then disabled without removing the table from the database; this query ensures we don’t try to create keys if they already exist (resulting in an error).

This query should be database agnostic since INFORMATION_SCHEME is an ANSI standard.