-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change repost
action to align with twitter Recsys
#31
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ CREATE TABLE post ( | |
post_id INTEGER PRIMARY KEY AUTOINCREMENT, | ||
user_id INTEGER, | ||
original_post_id INTEGER, -- NULL if this is an original post | ||
content TEXT, | ||
content TEXT DEFAULT '', -- DEFAULT '' for initial posts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Redtides0 I changed the default value of content as a empty string. I think this might be a more convenient way to implementat it? WDYT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. understood, LGTM. |
||
quote_content TEXT, -- NULL if this is an original post or a repost | ||
created_at DATETIME, | ||
num_likes INTEGER DEFAULT 0, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, the
current_time
is added, what wouldpost["content"]
be ?"None"
?