Hmm make sure it is linked to same db as your server.
Here is the code
Code: Select all
mysql_query("ALTER TABLE `accounts`
ADD COLUMN `token` varchar(64) default '',
ADD COLUMN `last_load` int(32) default '0',
ADD COLUMN `act_history` longtext ,
ADD COLUMN `last_login` int(32) default '0',
ADD COLUMN `email_verified` tinyint(1) default '0',
ADD COLUMN `city` varchar(64) default '',
ADD COLUMN `state` varchar(64) default '',
ADD COLUMN `country` varchar(64) default '',
ADD COLUMN `zipcode` varchar(32) default '',
ADD COLUMN `latitude` float default '0',
ADD COLUMN `longitude` float default '0',
ADD COLUMN `timezone` varchar(32) default '',
ADD COLUMN `birthdate` varchar(32) default '',
ADD COLUMN `astrologic_sign` varchar(32) default '',
ADD COLUMN `horoscope` longtext ,
ADD COLUMN `horoscope_date` int(64) default '0',
ADD COLUMN `age` int(3) default '0',
ADD COLUMN `gender` varchar(32) default '',
ADD COLUMN `language` varchar(100) default '',
ADD COLUMN `use_theme` varchar(250) default '',
ADD COLUMN `description` longtext ,
ADD COLUMN `quote` varchar(250) default '',
ADD COLUMN `header` longtext ,
ADD COLUMN `notepad_body` longtext ,
ADD COLUMN `profile_data` longtext ,
ADD COLUMN `mailboxes` longtext ,
ADD COLUMN `pictures` longtext ,
ADD COLUMN `mainpicture` varchar(100) default '',
ADD COLUMN `contacts` longtext ,
ADD COLUMN `relationship_requests` longtext ,
ADD COLUMN `block` longtext ,
ADD COLUMN `profile_views` longtext ,
ADD COLUMN `profile_votes` longtext ,
ADD COLUMN `pictures_votes` longtext ,
ADD COLUMN `favorites` longtext ,
ADD COLUMN `nudges` longtext ,
ADD COLUMN `settings` longtext ,
ADD COLUMN `spam_reports` longtext ,
ADD COLUMN `abuse_reports` longtext ,
ADD COLUMN `account_type` int(32) default '0',
ADD COLUMN `account_expire` int(64) default '0',
ADD COLUMN `registration_date` int(64) default '0',
ADD COLUMN `registration_reference` varchar(250) default '',
ADD COLUMN `active` tinyint(1) default '1',
ADD COLUMN `disable_until` int(64) default '0',
ADD COLUMN `is_moderator` tinyint(1) default '0',
ADD COLUMN `is_administrator` tinyint(1) default '0',
ADD COLUMN `is_superadministrator` tinyint(1) default '0';")