Dotclear

Changeset 1476


Ignore:
Timestamp:
09/18/09 12:56:45 (14 years ago)
Author:
Tomtom33
Message:

notifications 0.7.1 :

  • Getting ready for 2.1.6
Location:
plugins/notifications
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/notifications/_define.php

    r1368 r1476  
    1717          /* Description */        'Displays few notifications on administration pages', 
    1818          /* Author */             'Tomtom (http://blog.zenstyle.fr/)', 
    19           /* Version */            '0.7', 
     19          /* Version */            '0.7.1', 
    2020          /* Permissions */        'usage', 
    2121                                   null, 
  • plugins/notifications/_install.php

    r1143 r1476  
    2121} 
    2222 
    23 $s = new dbStruct($core->con,$core->prefix); 
    24  
    25 $s->notification 
    26      ->notification_id('bigint',0,false) 
    27      ->user_id('varchar',32,true) 
    28      ->blog_id('varchar',32,false) 
    29      ->notification_type('varchar',255,false) 
    30      ->notification_msg('text',0,true) 
    31      ->notification_dt('timestamp',0,false) 
    32      ->notification_ip('varchar',255,true) 
    33      ; 
    34 $s->notification->primary('pk_notification','notification_id'); 
    35 $s->notification->reference('fk_notification_blog','blog_id','blog','blog_id','cascade','cascade'); 
    36  
    37 $s->log->blog_id('varchar',32,false); 
    38  
    39 $si = new dbStruct($core->con,$core->prefix); 
    40 $changes = $si->synchronize($s); 
     23if (version_compare(DC_VERSION,'2.1.5.9','<')) { 
     24     $s = new dbStruct($core->con,$core->prefix); 
     25      
     26     $s->notification 
     27          ->notification_id('bigint',0,false) 
     28          ->user_id('varchar',32,true) 
     29          ->blog_id('varchar',32,false) 
     30          ->notification_type('varchar',255,false) 
     31          ->notification_msg('text',0,true) 
     32          ->notification_dt('timestamp',0,false) 
     33          ->notification_ip('varchar',255,true) 
     34          ; 
     35     $s->notification->primary('pk_notification','notification_id'); 
     36     $s->notification->reference('fk_notification_blog','blog_id','blog','blog_id','cascade','cascade'); 
     37      
     38     $s->log->blog_id('varchar',32,false); 
     39      
     40     $si = new dbStruct($core->con,$core->prefix); 
     41     $changes = $si->synchronize($s); 
     42} 
    4143 
    4244# Set config 
Note: See TracChangeset for help on using the changeset viewer.

Sites map