Phase 3: Organization Public Profile Page - Pinned repositories with groups - Public members display with roles - API endpoints for pinned repos and groups Phase 4: Gitea Pages Foundation - Landing page templates (simple, docs, product, portfolio) - Custom domain support with verification - YAML configuration parser (.gitea/landing.yaml) - Repository settings UI for pages Phase 5: Enhanced Wiki System with V2 API - Full CRUD operations via v2 API - Full-text search with WikiIndex table - Link graph visualization - Wiki health metrics (orphaned, dead links, outdated) - Designed for external AI plugin integration - Developer guide for .NET integration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
1.5 KiB
Go
40 lines
1.5 KiB
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_26
|
|
|
|
import (
|
|
"code.gitea.io/gitea/modules/timeutil"
|
|
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
// AddGiteaPagesTables adds the pages_domain and pages_config tables for Gitea Pages
|
|
func AddGiteaPagesTables(x *xorm.Engine) error {
|
|
// PagesDomain represents a custom domain mapping for Gitea Pages
|
|
type PagesDomain struct {
|
|
ID int64 `xorm:"pk autoincr"`
|
|
RepoID int64 `xorm:"INDEX NOT NULL"`
|
|
Domain string `xorm:"UNIQUE NOT NULL"`
|
|
Verified bool `xorm:"DEFAULT false"`
|
|
VerificationToken string `xorm:"VARCHAR(64)"`
|
|
SSLStatus string `xorm:"VARCHAR(32) DEFAULT 'pending'"`
|
|
SSLCertExpiry timeutil.TimeStamp `xorm:"DEFAULT 0"`
|
|
CreatedUnix timeutil.TimeStamp `xorm:"created"`
|
|
VerifiedUnix timeutil.TimeStamp `xorm:"DEFAULT 0"`
|
|
}
|
|
|
|
// PagesConfig represents the cached configuration for a repository's landing page
|
|
type PagesConfig struct {
|
|
ID int64 `xorm:"pk autoincr"`
|
|
RepoID int64 `xorm:"UNIQUE NOT NULL"`
|
|
Enabled bool `xorm:"DEFAULT false"`
|
|
Template string `xorm:"VARCHAR(32) DEFAULT 'simple'"`
|
|
ConfigJSON string `xorm:"TEXT"`
|
|
ConfigHash string `xorm:"VARCHAR(64)"`
|
|
UpdatedUnix timeutil.TimeStamp `xorm:"updated"`
|
|
}
|
|
|
|
return x.Sync(new(PagesDomain), new(PagesConfig))
|
|
}
|