Dotclear


Ignore:
Timestamp:
07/31/12 13:18:23 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
sexy
Message:

sexy step 1 : no more comments ...

Location:
inc/dbschema
Files:
2 edited

Legend:

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

    r407 r848  
    123123     ->post_selected          ('smallint',   0,   false,    0) 
    124124     ->post_position          ('integer',    0,   false,    0) 
    125      ->post_open_comment      ('smallint',   0,   false,    0) 
    126      ->post_open_tb           ('smallint',   0,   false,    0) 
    127      ->nb_comment             ('integer',    0,   false,    0) 
    128      ->nb_trackback           ('integer',    0,   false,    0) 
    129       
    130125     ->primary('pk_post','post_id') 
    131126      
     
    174169      
    175170     ->primary('pk_version','module') 
    176      ; 
    177  
    178 $_s->ping 
    179      ->post_id      ('bigint',     0,   false) 
    180      ->ping_url     ('varchar',    255, false) 
    181      ->ping_dt      ('timestamp',  0,   false,    'now()') 
    182       
    183      ->primary('pk_ping','post_id','ping_url') 
    184      ; 
    185  
    186 $_s->comment 
    187      ->comment_id             ('bigint',     0,   false) 
    188      ->post_id                ('bigint',     0,   false) 
    189      ->comment_dt             ('timestamp',  0,   false,    'now()') 
    190      ->comment_tz             ('varchar',    128, false,    "'UTC'") 
    191      ->comment_upddt          ('timestamp',  0,   false,    'now()') 
    192      ->comment_author         ('varchar',    255, true,     null) 
    193      ->comment_email          ('varchar',    255, true,     null) 
    194      ->comment_site           ('varchar',    255, true,     null) 
    195      ->comment_content        ('text',       0,   true) 
    196      ->comment_words          ('text',       0,   true,     null) 
    197      ->comment_ip             ('varchar',    39,  true,     null) 
    198      ->comment_status         ('smallint',   0,   true,     0) 
    199      ->comment_spam_status    ('varchar',    128, true,     0) 
    200      ->comment_spam_filter    ('varchar',    32,  true,     null) 
    201      ->comment_trackback      ('smallint',   0,   false,    0) 
    202       
    203      ->primary('pk_comment','comment_id') 
    204171     ; 
    205172 
     
    238205$_s->post_media->index   ('idx_post_media_media_id',        'btree',  'media_id'); 
    239206$_s->log->index          ('idx_log_user_id',                'btree',  'user_id'); 
    240 $_s->comment->index      ('idx_comment_post_id',            'btree',  'post_id'); 
    241207$_s->meta->index         ('idx_meta_post_id',     'btree','post_id'); 
    242208$_s->meta->index         ('idx_meta_meta_type',   'btree','meta_type'); 
     
    245211/* Performance indexes 
    246212-------------------------------------------------------- */ 
    247 $_s->comment->index      ('idx_comment_post_id_dt_status',  'btree',  'post_id', 'comment_dt', 'comment_status'); 
    248213$_s->post->index         ('idx_post_post_dt',               'btree',  'post_dt'); 
    249214$_s->post->index         ('idx_post_post_dt_post_id',       'btree',  'post_dt','post_id'); 
     
    266231$_s->post_media->reference('fk_media','media_id','media','media_id','cascade','cascade'); 
    267232$_s->post_media->reference('fk_media_post','post_id','post','post_id','cascade','cascade'); 
    268 $_s->ping->reference('fk_ping_post','post_id','post','post_id','cascade','cascade'); 
    269 $_s->comment->reference('fk_comment_post','post_id','post','post_id','cascade','cascade'); 
    270233$_s->log->reference('fk_log_blog','blog_id','blog','blog_id','cascade','set null'); 
    271234$_s->meta->reference('fk_meta_post','post_id','post','post_id','cascade','cascade'); 
  • inc/dbschema/upgrade.php

    r706 r848  
    154154                    $init_fav['posts'] = array('posts','Entries','posts.php', 
    155155                         'images/menu/entries.png','images/menu/entries-b.png', 
    156                          'usage,contentadmin',null,null); 
    157                     $init_fav['comments'] = array('comments','Comments','comments.php', 
    158                          'images/menu/comments.png','images/menu/comments-b.png', 
    159156                         'usage,contentadmin',null,null); 
    160157                    $init_fav['prefs'] = array('prefs','My preferences','preferences.php', 
Note: See TracChangeset for help on using the changeset viewer.

Sites map