aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-24 19:30:08 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-24 19:30:08 +0200
commit6e09d1b276002c87b0a1b5669c5c8fbbc191ba8f (patch)
tree5814c66024bedc717c786f2c0630899104e61308 /pkg/database/connection.go
parentFix the InReplyTo reference (diff)
downloadarchives-6e09d1b276002c87b0a1b5669c5c8fbbc191ba8f.tar.gz
archives-6e09d1b276002c87b0a1b5669c5c8fbbc191ba8f.tar.bz2
archives-6e09d1b276002c87b0a1b5669c5c8fbbc191ba8f.zip
Rename MessageId to MessageIdField
Unfortunately the name MessageId conflicts with go-pgs many2many relationship. That's why MessageId has been renamed to MessageIdField. However, a convenience method MessageId() has been added for backwards compability in templates. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'pkg/database/connection.go')
-rw-r--r--pkg/database/connection.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/database/connection.go b/pkg/database/connection.go
index 1163679..4f7353c 100644
--- a/pkg/database/connection.go
+++ b/pkg/database/connection.go
@@ -69,6 +69,8 @@ func Connect() {
DBCon.AddQueryHook(dbLogger{})
+ orm.RegisterTable((*models.MessageToReferences)(nil))
+
err := CreateSchema()
if err != nil {
// logger.Error.Println("ERROR: Could not create database schema")