From 88dcc5001efce6669d231c964cc4ad0c7baf7f5f Mon Sep 17 00:00:00 2001 From: Cameron-D Date: Thu, 8 May 2014 23:12:29 +1000 Subject: [PATCH] Patch thankyoulike install to create unique index. --- inc/plugins/thankyoulike.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/plugins/thankyoulike.php b/inc/plugins/thankyoulike.php index 94aecc6..cb5e1a4 100644 --- a/inc/plugins/thankyoulike.php +++ b/inc/plugins/thankyoulike.php @@ -138,7 +138,7 @@ function thankyoulike_install() uid int unsigned NOT NULL default '0', puid int unsigned NOT NULL default '0', dateline bigint(30) NOT NULL default '0', - KEY pid (pid, uid), + UNIQUE KEY pid (pid, uid), PRIMARY KEY (tlid) ) ENGINE=MyISAM ".$db->build_create_table_collation().";"); -- 1.7.11.msysgit.1