// Copyright 2026 Moko Consulting <hello@mokoconsulting.tech>
// SPDX-License-Identifier: GPL-3.0-or-later

package v1_27

import "xorm.io/xorm"

// RenamePackageTypeToExtensionType renames the package_type column to extension_type
// in the repo_manifest table for clarity (the field represents the Joomla extension type,
// not just packages).
func RenamePackageTypeToExtensionType(x *xorm.Engine) error {
	_, err := x.Exec("ALTER TABLE repo_manifest CHANGE COLUMN package_type extension_type VARCHAR(50) NOT NULL DEFAULT ''")
	return err
}
