Revert "store views on the shouts table, remove the viewed table"
This commit is contained in:
@@ -6,6 +6,7 @@ from orm.reaction import Reaction
|
||||
from orm.shout import Shout
|
||||
from orm.topic import Topic, TopicFollower
|
||||
from orm.user import User, UserRating
|
||||
from orm.viewed import ViewedEntry
|
||||
|
||||
# NOTE: keep orm module isolated
|
||||
|
||||
@@ -21,6 +22,7 @@ __all__ = [
|
||||
"Notification",
|
||||
"Reaction",
|
||||
"UserRating",
|
||||
"ViewedEntry"
|
||||
]
|
||||
|
||||
|
||||
@@ -33,4 +35,5 @@ def init_tables():
|
||||
Role.init_table()
|
||||
UserRating.init_table()
|
||||
Shout.init_table()
|
||||
ViewedEntry.init_table()
|
||||
print("[orm] tables initialized")
|
||||
|
Reference in New Issue
Block a user