Changeset 1661973
- Timestamp:
- 05/22/2017 05:23:08 AM (9 years ago)
- Location:
- tabulate/trunk
- Files:
-
- 2 edited
-
src/DB/Column.php (modified) (4 diffs)
-
tabulate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tabulate/trunk/src/DB/Column.php
r1636478 r1661973 568 568 $this->is_auto_increment(), 569 569 $this->is_unique(), 570 $this->is_primary_key(),571 570 $this->get_comment(), 572 571 $this->get_referenced_table() … … 590 589 */ 591 590 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 explicit ely should be unchanged.591 // Any that have not been set explicitly should be unchanged. 593 592 $new_name = ! is_null( $new_name ) ? (string) $new_name : $this->get_name(); 594 593 $xtype_name = ! is_null( $xtype_name ) ? (string) $xtype_name : $this->get_xtype()['name']; … … 618 617 } 619 618 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. 621 620 if ( $this->is_foreign_key() ) { 622 621 $fks_sql = 'SELECT CONSTRAINT_NAME AS fk_name FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS ' … … 637 636 $altered = $wpdb->query( $sql ); 638 637 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() . "'" 640 639 . " — $wpdb->last_error — <code>$sql</code>"; 641 640 throw new Exception( $err ); -
tabulate/trunk/tabulate.php
r1645667 r1661973 8 8 * Text Domain: tabulate 9 9 * Domain Path: /languages 10 * Version: 2.9. 410 * Version: 2.9.5 11 11 */ 12 12 13 define( 'TABULATE_VERSION', '2.9. 4' );13 define( 'TABULATE_VERSION', '2.9.5' ); 14 14 define( 'TABULATE_SLUG', 'tabulate' ); 15 15
Note: See TracChangeset
for help on using the changeset viewer.