Changeset 427 for trunk/db

Show
Ignore:
Timestamp:
2011-04-22 08:23:54 (1 year ago)
Author:
hannes
Message:

redundant storage of number of posts per topic for better performance

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/db/mysql.sql

    r425 r427  
    5959  pinned INTEGER NOT NULL DEFAULT 0, 
    6060  poll INTEGER NOT NULL DEFAULT 0, 
    61   topic_views INTEGER NOT NULL DEFAULT 0 
     61  topic_views INTEGER NOT NULL DEFAULT 0, 
     62  posts INTEGER NOT NULL DEFAULT 0 
    6263) CHARACTER SET utf8 COLLATE utf8_unicode_ci; 
    6364 
  • trunk/db/postgresql.sql

    r425 r427  
    5959  pinned INTEGER NOT NULL DEFAULT 0, 
    6060  poll INTEGER NOT NULL DEFAULT 0, 
    61   topic_views INTEGER NOT NULL DEFAULT 0 
     61  topic_views INTEGER NOT NULL DEFAULT 0, 
     62  posts INTEGER NOT NULL DEFAULT 0 
    6263); 
    6364 
  • trunk/db/sqlite.sql

    r425 r427  
    5959  pinned INTEGER NOT NULL DEFAULT 0, 
    6060  poll INTEGER NOT NULL DEFAULT 0, 
    61   topic_views INTEGER NOT NULL DEFAULT 0 
     61  topic_views INTEGER NOT NULL DEFAULT 0, 
     62  posts INTEGER NOT NULL DEFAULT 0 
    6263); 
    6364