Changeset 14 for veekun/script/base.sql

Show
Ignore:
Timestamp:
02/20/07 23:43:38 (3 years ago)
Author:
eevee
Message:

Split forum flags into flags and accessibility; accessibility now controls, well, how accessible the forum is by default. 'Locked' means no new threads; 'archive' means no new threads or posts; 'hidden' means no new stuff and it's invisible. Permissions of 'override_forum_*' will (eventually) allow a user to bypass these restrictions per-forum.
This is only partially implemented; I will finish it up tomorrow or so.
Also started migrating from database slurping to iterators, one at a time. The changes are more related than they seem; I'm implementing some of the forum flags as extra search() calls, and if I slurp the results of the first search() immediately then I can't do another. Easiest way around this is to just make it an iterator and alter the templates slightly.
I also plan to do some general forum template refactoring, but that will come after this stuff actually works correctly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/script/base.sql

    r9 r14  
    5959  threadct int(10) unsigned NOT NULL default '0', 
    6060  postct int(10) unsigned NOT NULL default '0', 
    61   flags set('locked','readonly','header','hidden') NOT NULL default '', 
     61  flags set('header') default NULL, 
     62  accessibility enum('normal','locked','archive','hidden') NOT NULL default 'normal', 
    6263  blurb varchar(255) NOT NULL default '', 
    6364  PRIMARY KEY  (id)