alter table `idx_category` add `basic_price` double unsigned NOT NULL default '0' after `order_num`;
alter table `idx_category` change `premium_price` `premium_price` double unsigned NOT NULL default '0';
alter table `idx_category` change `sponsored_price` `sponsored_price` double unsigned NOT NULL default '0';

alter table `idx_custom_field` add `field_img_width` int unsigned NOT NULL default '0' after `field_option`;
alter table `idx_custom_field` add `field_img_height` int unsigned NOT NULL default '0' after `field_img_width`;
alter table `idx_custom_field` add `field_file_size` int unsigned NOT NULL default '0' after `field_img_height`;
alter table `idx_custom_field` add `field_file_extension` int unsigned NOT NULL default '0' after `field_file_size`;

alter table `idx_invoice_config` change `currency` `currency_symbol` varchar(255) default '$';
alter table `idx_invoice_config` add `currency_code` varchar(255) default 'USD';

alter table `idx_link` change `suspended` `suspended` char(1) NOT NULL default '0';
alter table `idx_link` change `bid` `bid` smallint(6) NOT NULL default '0';
alter table `idx_link` drop `sp_cat`;
alter table `idx_link` drop `sp_cat_date_limit`;
alter table `idx_link` drop `sp_cat_order`;
alter table `idx_link_temp` change `suspended` `suspended` char(1) NOT NULL default '0';
alter table `idx_link_temp` change `bid` `bid` smallint(6) NOT NULL default '0';
alter table `idx_link_temp` drop `sp_cat`;
alter table `idx_link_temp` drop `sp_cat_date_limit`;
alter table `idx_link_temp` drop `sp_cat_order`;

alter table `idx_users` drop `theme`;
alter table `idx_users` drop `nol_category`;
alter table `idx_users` drop `nol_search`;

drop table `idx_category_in_order`;