import xhiveframework


def execute():
	"""Remove has_variants and attribute fields from item variant settings."""
	xhiveframework.reload_doc("stock", "doctype", "Item Variant Settings")

	xhiveframework.db.sql(
		"""delete from `tabVariant Field`
			where field_name in ('attributes', 'has_variants')"""
	)
