10
10
* needing to use these functions a lot, you might experience time outs. If you
11
11
* do, then it is advised to just write the SQL code yourself.
14
* check_column('wp_links', 'link_description', 'mediumtext');
15
* if (check_column($wpdb->comments, 'comment_author', 'tinytext'))
19
* $tablename = $wpdb->links;
21
* if (!check_column($wpdb->links, 'link_description', 'varchar(255)')) {
22
* $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";
23
* $q = $wpdb->query($ddl);
26
* if (check_column($wpdb->links, 'link_description', 'varchar(255)')) {
27
* $res .= $tablename . ' - ok <br />';
29
* $res .= 'There was a problem with ' . $tablename . '<br />';
13
* check_column( 'wp_links', 'link_description', 'mediumtext' );
14
* if ( check_column( $wpdb->comments, 'comment_author', 'tinytext' ) ) {
19
* $tablename = $wpdb->links;
20
* // Check the column.
21
* if ( ! check_column($wpdb->links, 'link_description', 'varchar( 255 )' ) ) {
22
* $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";
23
* $q = $wpdb->query( $ddl );
26
* if ( check_column( $wpdb->links, 'link_description', 'varchar( 255 )' ) ) {
27
* $res .= $tablename . ' - ok <br />';
29
* $res .= 'There was a problem with ' . $tablename . '<br />';
34
33
* @package WordPress
35
34
* @subpackage Plugin