Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 3cd9240

Browse files
committed
Preserve ordinal position when changing column
1 parent 6d7a8e0 commit 3cd9240

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wp-includes/sqlite-ast/class-wp-sqlite-information-schema-builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ private function record_change_column(
715715
WP_Parser_Node $node
716716
): void {
717717
$column_data = $this->extract_column_data( $table_name, $new_column_name, $node, 0 );
718+
unset( $column_data['ordinal_position'] );
718719
$this->update_values(
719720
$this->get_table_name( $table_is_temporary, 'columns' ),
720721
$column_data,

0 commit comments

Comments
 (0)