summaryrefslogtreecommitdiffstats
path: root/models/forgejo_migrations/v19.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/forgejo_migrations/v19.go')
-rw-r--r--models/forgejo_migrations/v19.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/models/forgejo_migrations/v19.go b/models/forgejo_migrations/v19.go
new file mode 100644
index 0000000..69b7746
--- /dev/null
+++ b/models/forgejo_migrations/v19.go
@@ -0,0 +1,14 @@
+// Copyright 2024 The Forgejo Authors. All rights reserved.
+// SPDX-License-Identifier: MIT
+
+package forgejo_migrations //nolint:revive
+
+import "xorm.io/xorm"
+
+func AddExternalURLColumnToAttachmentTable(x *xorm.Engine) error {
+ type Attachment struct {
+ ID int64 `xorm:"pk autoincr"`
+ ExternalURL string
+ }
+ return x.Sync(new(Attachment))
+}