Plugin Directory

Changeset 1661973


Ignore:
Timestamp:
05/22/2017 05:23:08 AM (9 years ago)
Author:
samwilson
Message:

Version 2.9.5

Location:
tabulate/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tabulate/trunk/src/DB/Column.php

    r1636478 r1661973  
    568568            $this->is_auto_increment(),
    569569            $this->is_unique(),
    570             $this->is_primary_key(),
    571570            $this->get_comment(),
    572571            $this->get_referenced_table()
     
    590589     */
    591590    public function alter( $new_name = null, $xtype_name = null, $size = null, $nullable = null, $default = null, $auto_increment = null, $unique = null, $comment = null, $target_table = null, $after = null ) {
    592         // Any that have not been set explicitely should be unchanged.
     591        // Any that have not been set explicitly should be unchanged.
    593592        $new_name = ! is_null( $new_name ) ? (string) $new_name : $this->get_name();
    594593        $xtype_name = ! is_null( $xtype_name ) ? (string) $xtype_name : $this->get_xtype()['name'];
     
    618617        }
    619618
    620         // Drop the FK if it exists; it'll be re-created after.
     619        // Drop any foreign keys if they exist; they'll be re-created after.
    621620        if ( $this->is_foreign_key() ) {
    622621            $fks_sql = 'SELECT CONSTRAINT_NAME AS fk_name FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS '
     
    637636        $altered = $wpdb->query( $sql );
    638637        if ( false === $altered ) {
    639             $err = "Unable to alter '" . $table->get_name() . "." . $this->get_name() . "' "
     638            $err = "Unable to alter '" . $table->get_name() . "." . $this->get_name() . "'"
    640639                . " &mdash; $wpdb->last_error &mdash; <code>$sql</code>";
    641640            throw new Exception( $err );
  • tabulate/trunk/tabulate.php

    r1645667 r1661973  
    88 * Text Domain: tabulate
    99 * Domain Path: /languages
    10  * Version: 2.9.4
     10 * Version: 2.9.5
    1111 */
    1212
    13 define( 'TABULATE_VERSION', '2.9.4' );
     13define( 'TABULATE_VERSION', '2.9.5' );
    1414define( 'TABULATE_SLUG', 'tabulate' );
    1515
Note: See TracChangeset for help on using the changeset viewer.