Index: trunk/extensions/ArticleFeedbackv5/sql/ArticleFeedbackv5.sql |
— | — | @@ -46,10 +46,11 @@ |
47 | 47 | -- We already used af_ above, so this is ArticleFIeld instead |
48 | 48 | CREATE TABLE IF NOT EXISTS /*_*/aft_article_field ( |
49 | 49 | afi_id integer unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, |
50 | | - afi_name varchar(255) NOT NULL UNIQUE, |
| 50 | + afi_name varchar(255) NOT NULL, |
51 | 51 | afi_data_type ENUM('text', 'boolean', 'rating', 'select'), |
52 | 52 | -- FKey to article_field_groups.group_id |
53 | | - afi_group_id integer unsigned NULL |
| 53 | + afi_group_id integer unsigned NULL, |
| 54 | + afi_bucket_id integer unsigned NOT NULL |
54 | 55 | ) /*$wgDBTableOptions*/; |
55 | 56 | |
56 | 57 | CREATE TABLE IF NOT EXISTS /*_*/aft_article_field_option ( |
Index: trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | ); |
75 | 75 | } |
76 | 76 | |
77 | | - protected function validateParams($value, $type) { |
| 77 | + protected function validateParam($value, $type) { |
78 | 78 | # rating: int between 1 and 5 (inclusive) |
79 | 79 | # boolean: 1 or 0 |
80 | 80 | # option: option exists |