Skip to content

Commit b7d2787

Browse files
author
Oleg Komarov
committed
add a comment about lack of migrations
1 parent 46c36e5 commit b7d2787

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/user/spamreport.go

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ func (*SpamReport) TableName() string {
5656
}
5757

5858
func init() {
59+
// This table doesn't exist in the upstream code.
60+
// We don't introduce migrations for it to avoid migration id clashes.
61+
// Gitea will create the table in the database during startup,
62+
// so no manual action is required until we start modifying the table.
5963
db.RegisterModel(new(SpamReport))
6064
}
6165

0 commit comments

Comments
 (0)