db = &$db; $this->db_tools = &$db_tools; } /** * Defines other migrationsto be applied first (abstract method) * * @return array An array of migration class names */ function depends_on() { return array(); } /** * Updates the database schema by providing a set of change instructions * * @return array */ function update_schema() { return array(); } /** * Updates data * * @return null */ function update_data() { } /** * Adds a column to a database table */ function db_column_add($table_name, $column_name, $column_data) { $this->db_tools->sql_column_add($table_name, $column_name, $column_data); } }