Dotclear


Ignore:
Timestamp:
11/26/16 11:53:12 (9 years ago)
Author:
Jean-Christian Denis
Branch:
default
Message:

Add First Publication mecanism, closes #970, adresses #784, #843, #871, #548

Location:
inc/dbschema
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/dbschema/db-schema.php

    r3231 r3423  
    121121     ->post_words             ('text',       0,        true,     null) 
    122122     ->post_status            ('smallint',   0,        false,    0) 
     123     ->post_firstpub               ('smallint',   0,        false,    0) 
    123124     ->post_selected               ('smallint',   0,        false,    0) 
    124125     ->post_position               ('integer',         0,        false,    0) 
  • inc/dbschema/upgrade.php

    r3420 r3423  
    610610               $core->con->execute($strReq); 
    611611 
     612               # Update first publication on published posts 
     613               $strReq = 'UPDATE '.$core->prefix.'post '. 
     614                         'SET post_firstpub = 1 '. 
     615                         'WHERE post_status = 1 '; 
     616               $core->con->execute($strReq); 
     617 
    612618               # A bit of housecleaning for no longer needed files 
    613619               $remfiles = array ( 
Note: See TracChangeset for help on using the changeset viewer.

Sites map