Files
aowow/setup/updates/03_screenshots.sql
Sarjuuk 0b46d15a2a - implemented screenshot handling, inclding
* editing after upload
  * reputation gain for approved uploads
  * moderator interface (albeit a bit wonky)

I still do not speak French, Spanish or Russian, so translations are
appreciated
2014-11-12 20:28:46 +01:00

17 lines
698 B
SQL

DROP TABLE IF EXISTS `aowow_screenshots`;
CREATE TABLE IF NOT EXISTS `aowow_screenshots` (
`id` int(16) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(4) unsigned NOT NULL,
`typeId` mediumint(9) NOT NULL,
`uploader` int(16) unsigned NOT NULL,
`date` int(32) unsigned NOT NULL,
`width` smallint(5) unsigned NOT NULL,
`height` smallint(5) unsigned NOT NULL,
`caption` varchar(250) DEFAULT NULL,
`status` tinyint(3) unsigned NOT NULL COMMENT 'see defines.php - CC_FLAG_*',
`approvedBy` int(16) unsigned DEFAULT NULL,
`deletedBy` int(16) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `type` (`type`,`typeId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;