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

package v1_27

import "xorm.io/xorm"

// AddAttachmentCDNPublic adds the cdn_public column to the attachment table.
func AddAttachmentCDNPublic(x *xorm.Engine) error {
	type Attachment struct {
		CDNPublic bool `xorm:"NOT NULL DEFAULT false 'cdn_public'"`
	}
	return x.Sync(new(Attachment))
}
