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

package v1_27

import "xorm.io/xorm"

// AddOrgWikiSettings adds wiki_mode and wiki_url columns to the user table
// for configuring org-level wiki behavior (internal convention repos vs external link).
func AddOrgWikiSettings(x *xorm.Engine) error {
	type User struct {
		WikiMode string `xorm:"VARCHAR(20) NOT NULL DEFAULT '' 'wiki_mode'"`
		WikiURL  string `xorm:"TEXT 'wiki_url'"`
	}
	return x.Sync(new(User))
}
