get_charset_collate(); $prefix = $wpdb->prefix; $generated_post = "CREATE TABLE {$prefix}wpwand_generated_post ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, title varchar(255) NOT NULL, content longtext DEFAULT NULL, post_id bigint(20) unsigned DEFAULT NULL, action_id bigint(20) unsigned DEFAULT NULL, status varchar(255) DEFAULT 'pending', featured_image_id bigint(20) unsigned DEFAULT NULL, template varchar(100) DEFAULT NULL, word_count int(11) NOT NULL DEFAULT 0, source varchar(20) DEFAULT NULL, created_at timestamp DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) ) {$charset_collate};"; dbDelta($generated_post); } }