Changeset 5978

Show
Ignore:
Timestamp:
05/11/07 12:47:51 (2 years ago)
Author:
rambo
Message:

Adrenalin:

* changed misspelled column cencored to censored

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/org.routamc.gallery/config/mgdschema.sql

    r4404 r5978  
    1111  KEY org_routamc_gallery_photolink_photo_idx (photo) 
    1212); 
    13 ALTER TABLE org_routamc_gallery_photolink ADD COLUMN cencored int(11) NOT NULL default 0; 
    14 CREATE INDEX org_routamc_gallery_photolink_cencored_idx on org_routamc_gallery_photolink (cencored); 
     13 
     14# Change the misspelled column name 
     15ALTER TABLE org_routamc_gallery_photolink CHANGE COLUMN cencored censored int(11) NOT NULL default 0; 
     16 
     17# Try to create censored column if it doesn't exist 
     18ALTER TABLE org_routamc_gallery_photolink ADD COLUMN censored int(11) NOT NULL default 0; 
     19 
     20# Add backwards support for Midgard v1.7 branch 
     21ALTER TABLE org_routamc_gallery_photolink ADD COLUMN score int(11) NOT NULL default 0; 
     22CREATE INDEX org_routamc_gallery_photolink_censored_idx on org_routamc_gallery_photolink (censored); 
  • trunk/src/org.routamc.gallery/config/mgdschema.xml

    r5900 r5978  
    55        <property name="node" link="midgard_topic:id" reverse="no" type="integer" parentfield="node"/> 
    66        <property name="photo" link="org_routamc_photostream_photo:id" reverse="no" type="integer"/> 
    7         <property name="cencored" type="integer" /> 
     7        <property name="censored" type="integer" /> 
     8        <property name="score" type="integer" /> 
    89    </type> 
    910</Schema> 
  • trunk/src/org.routamc.gallery/documentation/CHANGES

    r4795 r5978  
    44Legend: 
    55- All items marked with "!" represent a major API-Change that is 
    6   not guranteed to be backwards compatible to previous versions 
     6  not guaranteed to be backwards compatible to previous versions 
    77  which might even break existing functionality. 
    88- All items marked with "+" represent completly new features. 
     9 
     102007-05-11 adrenalin 
     11  ! Changed misspelled property `cencored` to `censored`. This property isn't probably in real use, but 
     12    might break backwards compatibility 
     13  - Started to work on sorting feature for photos 
    914 
    10152006-11-12 rambo 
  • trunk/src/org.routamc.gallery/handler/index.php

    r5533 r5978  
    6464 
    6565        // FIXME: This property should be rethought 
    66         $qb->add_constraint('cencored', '=', 0); 
     66        $qb->add_constraint('censored', '=', 0); 
    6767         
    6868        foreach ($this->_config->get('index_order') as $ordering) 
     
    130130 
    131131            // FIXME: This property should be rethought 
    132             $qb->add_constraint('cencored', '=', 0); 
     132            $qb->add_constraint('censored', '=', 0); 
    133133 
    134134            $photolinks = $qb->execute();