Ignore:
Timestamp:
Sep 15, 2012, 1:16:46 PM (12 years ago)
Author:
mistic100
Message:
  • ENGINE=MyISAM for table creation
  • add simple prefilter example
  • don't hardcode plugin folder
  • define VERSION auto, implemented soon in PEM
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/skeleton/include/install.inc.php

    r17899 r17924  
    99 *    - use "if empty" for configuration vars
    1010 *    - use "IF NOT EXISTS" for table creation
     11 *
     12 * Unlike the functions in maintain.inc.php, the name of this function must be unique
     13 * and not enter in conflict with other plugins.
    1114 */
    1215
     
    2932  // add a new table
    3033        pwg_query('
    31 CREATE TABLE IF NOT EXISTS `'.$prefixeTable.'skeleton` (
     34CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'skeleton` (
    3235  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    3336  `field1` mediumint(8) DEFAULT NULL,
    3437  `field2` varchar(64) NOT NULL,
    3538  PRIMARY KEY (`id`)
    36 ) DEFAULT CHARSET=utf8
     39) ENGINE=MyISAM DEFAULT CHARSET=utf8
    3740;');
    3841
Note: See TracChangeset for help on using the changeset viewer.