Changeset 1425

Show
Ignore:
Timestamp:
04/09/06 23:45:25 (3 years ago)
Author:
mbonetti
Message:

delay the index creation of the properties table, in a hope to be more sqlite friendly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/schema.php

    r1349 r1425  
    684684          proptype enum('item','feed','folder','category','plugin','tag','theme','misc') NOT NULL default 'item', 
    685685          property varchar(128) NOT NULL default '', 
    686           value text NOT NULL, 
    687           UNIQUE KEY uniq (fk_ref_object_id(180),property,proptype) 
     686          value text NOT NULL 
    688687        ) TYPE=MyISAM; 
    689688         
     
    696695        return 0; 
    697696    } else { 
    698         return 1; 
     697        $idSql = "alter table $table add UNIQUE KEY uniq (fk_ref_object_id(180),property,proptype)"; 
     698        rss_query_wrapper($idSql, false, true); 
     699        return rss_is_sql_error(RSS_SQL_ERROR_NO_ERROR); 
    699700    } 
    700701}