db_tools->sql_column_exists($this->table_prefix . 'ass_items', 'item_stack'); } /** * Assign migration file dependencies for this migration. * * @return array Array of migration files * @access public * @static */ static public function depends_on() { return ['\phpbbstudio\ass\migrations\install_tables']; } /** * Add the Advanced Shop System tables and columns to the database. * * @return array Array of tables and columns data * @access public */ public function update_schema() { return [ 'add_columns' => [ $this->table_prefix . 'ass_items' => [ 'item_stack' => ['ULINT', 1, 'after' => 'item_count'], ], ], ]; } /** * Reverts the database schema by providing a set of change instructions * * @return array Array of schema changes * (compatible with db_tools->perform_schema_changes()) * @access public */ public function revert_schema() { return [ 'drop_columns' => [ $this->table_prefix . 'ass_items' => [ 'item_stack', ], ], ]; } }