* * @link http://looks-awesome.com * @copyright Looks Awesome */ class FFMigration_2_5 implements ILADBMigration{ public function version() { return '2.5'; } public function execute($conn, $manager) { LADDLUtils::addColumnIfNotExist($conn, $manager->posts_table_name, 'post_timestamp', 'INT'); if (LADDLUtils::existColumn($conn, $manager->posts_table_name, 'post_date')){ LADDLUtils::dropColumn($conn, $manager->posts_table_name, 'post_date'); } $conn->query('DELETE FROM ?n', $manager->cache_table_name); } }