Skip to content

Commit

Permalink
Mysql updates need for PollBooth and 15.05.4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
paulej72 committed Jun 14, 2015
1 parent 757162c commit 02a5cfc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Slash/Constants/Constants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The constants below are grouped by tag.
use strict;
use base 'Exporter';

our $VERSION = '15.05';
our $VERSION = '15.05.4';
our %CONSTANTS;

constants();
Expand Down
1 change: 1 addition & 0 deletions sql/mysql/defaults.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ INSERT INTO vars (name, value, description) VALUES ('organise_stories','','organ
INSERT INTO vars (name, value, description) VALUES ('panic','0','0:Normal, 1:No frills, 2:Essentials only');
INSERT INTO vars (name, value, description) VALUES ('poll_cache','0','On home page, cache and display default poll for users (if false, is extra hits to database)');
INSERT INTO vars (name, value, description) VALUES ('poll_discussions','1','Allow discussions on polls');
INSERT INTO vars (name, value, description) VALUES ('poll_dynamic','1','On home page, display dynamic poll on each nexus (if ture, is extra hits to database)');
INSERT INTO vars (name, value, description) VALUES ('poll_fwdfor','1','Loose proxy management for voting?');
INSERT INTO vars (name, value, description) VALUES ('postedout_end_secs','21600','Window to count posted-out stories closes this many seconds in the future');
INSERT INTO vars (name, value, description) VALUES ('postedout_start_secs','300','Window to count posted-out stories opens this many seconds in the future');
Expand Down
12 changes: 12 additions & 0 deletions sql/mysql/upgrades
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@ UPDATE vars SET value = '0' WHERE name = 'do_expiry';
# Fix too small title lenght
ALTER TABLE sessions MODIFY COLUMN lasttitle varchar(100) DEFAULT NULL;
ANALYZE TABLE sessions;

#######################################
# SoylentNews Rehash 15.05.4 #
#######################################

UPDATE vars SET value = 'rehash_15_05_4' WHERE name = 'cvs_tag_currentcode';

# Update Polls to work with Nexuses
INSERT INTO vars (name, value, description) VALUES ('poll_dynamic','1','On home page, display dynamic poll on each nexus (if ture, is extra hits to database)');
UPDATE blocks SET all_skins = 1 where id = 9;


0 comments on commit 02a5cfc

Please sign in to comment.