User/Reputation
* fix storing negative reputation values
This commit is contained in:
parent
a5051c9bf5
commit
d4694cd2db
2 changed files with 3 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ DROP TABLE IF EXISTS `aowow_account_reputation`;
|
|||
CREATE TABLE `aowow_account_reputation` (
|
||||
`userId` int(10) unsigned NOT NULL,
|
||||
`action` tinyint(3) unsigned NOT NULL COMMENT 'e.g. upvote a comment',
|
||||
`amount` tinyint(3) unsigned NOT NULL,
|
||||
`amount` tinyint(3) NOT NULL,
|
||||
`sourceA` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'e.g. upvoting user',
|
||||
`sourceB` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'e.g. upvoted commentId',
|
||||
`date` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
|
|
|
|||
2
setup/sql/updates/1763580264_01.sql
Normal file
2
setup/sql/updates/1763580264_01.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE `aowow_account_reputation`
|
||||
MODIFY COLUMN `amount` tinyint(3) signed NOT NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue