Ejemplo n.º 1
0
 /**
  * Retrieves an associative array of table options defined for a table
  * @param  SimpleXMLElement $node_schema The schema
  * @param  SimpleXMLElement $node_table  The table
  * @return array            Option name => option value
  */
 public static function get_table_options($node_schema, $node_table)
 {
     $opts = parent::get_table_options($node_schema, $node_table);
     if (!mysql5::$use_auto_increment_table_options && array_key_exists('auto_increment', $opts)) {
         dbsteward::warning('WARNING: Ignoring auto_increment tableOption on table ' . mysql5::get_fully_qualified_table_name($node_schema['name'], $node_table['name']));
         dbsteward::warning('         Setting the auto_increment value is unreliable. If you want to use it, pass the --useautoincrementoptions commandline flag');
         unset($opts['auto_increment']);
     }
     return $opts;
 }