tipsypastels

Untitled

Nov 3rd, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. # SQL Changes
  2.  
  3. CREATE TABLE `pokecommdev_forums`.`badge` ( `badgeid` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(255) NOT NULL , `description` VARCHAR(255) NOT NULL , `icon` TEXT NOT NULL , PRIMARY KEY (`badgeid`)) ENGINE = MyISAM;
  4.  
  5. ALTER TABLE `badge` ADD `users` INT NOT NULL DEFAULT '0' AFTER `icon`;
  6.  
  7. CREATE TABLE `pokecommdev_forums`.`badge_ownership` ( `badgeid` INT NOT NULL , `given_to_userid` INT NOT NULL , `given_by_userid` INT NOT NULL , `given_at` DATE NOT NULL DEFAULT CURRENT_TIMESTAMP , `reason` VARCHAR(255) NOT NULL ) ENGINE = MyISAM;
  8.  
  9. ALTER TABLE `badge_ownership` CHANGE `given_at` `given_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
  10.  
  11. ALTER TABLE `badge_ownership` ADD `favorite` BOOLEAN NOT NULL DEFAULT FALSE AFTER `reason`;
  12.  
  13. ALTER TABLE `pokecommdev_forums`.`badge_ownership` ADD UNIQUE (`badgeid`, `given_to_userid`);
  14.  
  15. ALTER TABLE `badge_ownership` ADD `color` VARCHAR(255) NOT NULL AFTER `favorite`, ADD `shine` TINYINT NOT NULL DEFAULT '0' AFTER `color`;
  16.  
  17. ALTER TABLE `badge` CHANGE `icon` `icon` VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;
  18.  
  19. ALTER TABLE `pokecommdev_forums`.`badge` ADD UNIQUE `badge_icon_is_unique` (`icon`);
  20.  
  21. ALTER TABLE `user` ADD `decal_style` ENUM('solid','light','colorless') NOT NULL DEFAULT 'solid' AFTER `emailLastConfirmedDate`;
  22.  
  23. # Changed Templates
  24. staff_dashboard_shell - added badge tab
  25. MEMBERINFO - added badge tab
  26. memberinfo_block_badges - created
  27. memberinfo_block_myawards - added deprecation notice
  28. postbit - duh
  29. settings_postflair - weight customization
  30. navbar - added badges mod link
  31.  
  32. # Changed Files
  33. .htaccess - added badge-related routes to staff dashboard
  34. staff-dashboard-badges.php - created
  35. includes/functions_badges.php - created
  36. includes/staff-dashboard/global.php - added $show variable for badges tab
  37. styles/badges.scss - added badge styling
  38. styles/base.scss - added @import to badges.scss
  39. styles/base-rewrite.scss - added @import to badges.scss
  40. member.php - unbroke it
  41. includes/class_profileblock.php - added badges block
  42. scripts/badges.js - created
  43. scripts/staff-dashboard-badges.js - created
  44. includes/class_postbit.php - badge displaying
  45. settings.php - weight customization
Advertisement
Add Comment
Please, Sign In to add comment