[ Index ]

MailPress 7.0.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-admin/includes/install/ -> form.php (source)

   1  <?php
   2  
   3  /* Form install */
   4  
   5  global $wpdb;
   6  
   7  //////////////////////////////////
   8  //// Install                  ////
   9  //////////////////////////////////
  10  
  11  $charset_collate = $wpdb->get_charset_collate();
  12  
  13  $queries = array();
  14  
  15  $queries[] =
  16  "CREATE TABLE $wpdb->mp_forms ( 
  17   id                bigint( 20 )      NOT NULL auto_increment,
  18   label             varchar( 255 )    NOT NULL default '',
  19   description       varchar( 255 )    NOT NULL default '',
  20   template          varchar( 50 )     NOT NULL default '',
  21   settings          longtext,
  22   PRIMARY KEY ( id ),
  23   UNIQUE KEY id ( id )
  24   ) $charset_collate;";
  25  
  26  $queries[] =
  27  "CREATE TABLE $wpdb->mp_fields ( 
  28   id                bigint( 20 )      NOT NULL auto_increment,
  29   form_id           bigint( 20 )      NOT NULL,
  30   ordre             bigint( 20 )      UNSIGNED NOT NULL default 0,
  31   type              varchar( 50 )     NOT NULL default '',
  32   template          varchar( 50 )     NOT NULL default '',
  33   label             varchar( 255 )    NOT NULL default '',
  34   description       varchar( 255 )    NOT NULL default '',
  35   settings          longtext,
  36   PRIMARY KEY ( id ),
  37   UNIQUE KEY id ( id )
  38   ) $charset_collate;";
  39  
  40  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
  41  dbDelta( $queries );


Generated: Mon Jan 28 00:07:10 2019 Cross-referenced by PHPXref 0.7.1