Changeset 47786 for trunk/src/wp-admin/install-helper.php
- Timestamp:
- 05/12/2020 06:38:02 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install-helper.php
r47785 r47786 40 40 if ( ! function_exists( 'maybe_create_table' ) ) : 41 41 /** 42 * Create database table,if it doesn't already exist.42 * Creates a table in the database if it doesn't already exist. 43 43 * 44 44 * @since 1.0.0 … … 47 47 * 48 48 * @param string $table_name Database table name. 49 * @param string $create_ddl Create database table SQL.50 * @return bool False on error, true if already exists or success.49 * @param string $create_ddl SQL statement to create table. 50 * @return bool True on success or if the table already exists. False on failure. 51 51 */ 52 52 function maybe_create_table( $table_name, $create_ddl ) { … … 75 75 if ( ! function_exists( 'maybe_add_column' ) ) : 76 76 /** 77 * Add column to database table, if column doesn't already exist in table.77 * Adds column to database table, if it doesn't already exist. 78 78 * 79 79 * @since 1.0.0 … … 81 81 * @global wpdb $wpdb WordPress database abstraction object. 82 82 * 83 * @param string $table_name Database table name84 * @param string $column_name Table column name 85 * @param string $create_ddl SQL to add column to table.86 * @return bool False on failure. True, if already exists or was successful.83 * @param string $table_name Database table name. 84 * @param string $column_name Table column name. 85 * @param string $create_ddl SQL statement to add column. 86 * @return bool True on success or if the column already exists. False on failure. 87 87 */ 88 88 function maybe_add_column( $table_name, $column_name, $create_ddl ) { … … 110 110 111 111 /** 112 * Drop column from database table, if it exists.112 * Drops column from database table, if it exists. 113 113 * 114 114 * @since 1.0.0 … … 116 116 * @global wpdb $wpdb WordPress database abstraction object. 117 117 * 118 * @param string $table_name Table name119 * @param string $column_name Column name120 * @param string $drop_ddl SQL statement to drop column.121 * @return bool True on success or if the column doesn't exist , false on failure.118 * @param string $table_name Database table name. 119 * @param string $column_name Table column name. 120 * @param string $drop_ddl SQL statement to drop column. 121 * @return bool True on success or if the column doesn't exist. False on failure. 122 122 */ 123 123 function maybe_drop_column( $table_name, $column_name, $drop_ddl ) { … … 144 144 145 145 /** 146 * Check column matchescriteria.146 * Checks that database table column matches the criteria. 147 147 * 148 148 * Uses the SQL DESC for retrieving the table info for the column. It will help … … 163 163 * @global wpdb $wpdb WordPress database abstraction object. 164 164 * 165 * @param string $table_name Table name166 * @param string $col_name Column name167 * @param string $col_type Column type165 * @param string $table_name Database table name. 166 * @param string $col_name Table column name. 167 * @param string $col_type Table column type. 168 168 * @param bool $is_null Optional. Check is null. 169 169 * @param mixed $key Optional. Key info.
Note: See TracChangeset
for help on using the changeset viewer.