added support for scheduling events (specials) and announcements in the database #240
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
adds two new tables:
events
andeventtype
SQL is at the end.
be careful because "events" is a reserved word and may cause anger if not wrapped in quotes. works on my machine but please double check :). Tried to keep it vague so we can use the table for other scheduled stuff (double exp weekends?). It supports multiple sets of specials active at one time if that happens (holiday and milestone pet, for example). You'll still need to add info on the specials in the
list
object in the json file but now we can deploy them early and schedule them to go live later.Also, using
adate
onannouncement
for when the announcement should be available; current behaviour is preserved in that if you don't put a date it'll go live immediately like it already does, but if you put a date in the future it won't show up until after that time has passed.SQL:
table creation:
type table data contents:
Example event data (config based on an attempt to reverse engineer the contents of
specialRate
in the json file since I don't have a sample):