aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/database')
-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")