gosora/schema/pgsql
Azareal 74e09efb63 Fixed a bug where it would use the wrong templates for Tempra Simple, Tempra Cursive, and Shadow
Likes are now done over AJAX.
Posts you have liked are now visually differentiated from those which you have not.
Added support for OR to the where parser.
|| and && now get translated to OR and AND in the where parser.
Added support for ( and ) in the where parser.
Added an adapter and builder method for getting the database version.
Multiple wheres can now be chained with the micro and accumulator builders.
Added the In method to the accumulator select builder.
Added the GetConn method to the builder.
/uploads/ files should now get cached properly.
Added more tooltips for topic titles and usernames.

Fixed a bug in the runners where old stale templates would be served.
Fixed a bug where liking topics didn't work.
Began moving the database initialisation logic out of {adapter}.go and into querygen.
Tweaked the alert direction to show the newest alerts rather than the oldest.
Tweaked the WS JS to have it handle messages more efficiently.
Partially fixed an issue where inline edited posts would lack newlines until the page is refreshed.
Used arrow functions in a few places in global.js to save a few characters.

Schema:
Added the liked, oldestItemLikedCreatedAt and lastLiked columns to the users table.
Added the createdAt column to the likes table.

MySQL Update Queries:
ALTER TABLE `users` ADD COLUMN `liked` INT NOT NULL DEFAULT '0' AFTER `topics`;
ALTER TABLE `users` ADD COLUMN `oldestItemLikedCreatedAt` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `liked`;
ALTER TABLE `users` ADD COLUMN `lastLiked` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `oldestItemLikedCreatedAt`;
ALTER TABLE `likes` ADD COLUMN `createdAt` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `sentBy`;
delete from `likes`;
delete from `activity_stream` where `event` = 'like';
delete from `activity_stream_matches` where `asid` not in(select `asid` from `activity_stream`);
update `topics` set `likeCount` = 0;
update `replies` set `likeCount` = 0;
2018-03-31 06:25:27 +01:00
..
inserts.sql Added support for meta descriptions. You can configure this from the Control Panel's Setting Manager. 2017-12-25 06:12:19 +00:00
query_activity_stream.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_activity_stream_matches.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_activity_subscriptions.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_administration_logs.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_attachments.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_emails.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_forums.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_forums_permissions.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_likes.sql Fixed a bug where it would use the wrong templates for Tempra Simple, Tempra Cursive, and Shadow 2018-03-31 06:25:27 +01:00
query_moderation_logs.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_plugins.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_polls.sql Added support for polls, minus the results UI, we're planning to have a nice little chart for this. 2018-01-27 07:30:44 +00:00
query_polls_options.sql You can now view the results of polls. 2018-01-28 14:30:24 +00:00
query_polls_voters.sql Block requests without known hosts for security reasons. 2018-01-25 04:57:33 +00:00
query_polls_votes.sql We now show requests to non-existent routes on the Route Analytics Page. 2018-01-26 05:53:34 +00:00
query_postchunks.sql Added the post counter and the associated Control Panel graph. 2018-01-14 12:03:20 +00:00
query_replies.sql Block requests without known hosts for security reasons. 2018-01-25 04:57:33 +00:00
query_revisions.sql /topics/ (the default index) is now over 25 times faster than before. 2018-02-10 15:07:21 +00:00
query_settings.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_sync.sql Add a per-user theme switcher. The CSS might be slightly broken in the themes, that'll be fixed in a follow-up commit. 2017-09-10 17:57:22 +01:00
query_themes.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_topicchunks.sql Added the global topic counter and associated graphs. 2018-01-18 12:31:25 +00:00
query_topics.sql Block requests without known hosts for security reasons. 2018-01-25 04:57:33 +00:00
query_users.sql Fixed a bug where it would use the wrong templates for Tempra Simple, Tempra Cursive, and Shadow 2018-03-31 06:25:27 +01:00
query_users_groups.sql /topics/ (the default index) is now over 25 times faster than before. 2018-02-10 15:07:21 +00:00
query_users_groups_scheduler.sql Added support for word filters. 2017-08-27 10:33:45 +01:00
query_users_replies.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_viewchunks.sql The Cosora Theme is almost complete and is being rolled out on the site to demo it. 2017-12-19 03:53:13 +00:00
query_viewchunks_agents.sql We now track global user agent stats and have a currently simple Control Panel interface for that. 2018-01-09 07:39:29 +00:00
query_viewchunks_forums.sql Moved the counters to their own package. 2018-02-19 04:26:01 +00:00
query_viewchunks_langs.sql Added support for phrases in templates. 2018-03-08 03:59:47 +00:00
query_viewchunks_referrers.sql Added referrer analytics. You can now see what site a visitor has come from. 2018-02-05 10:29:13 +00:00
query_viewchunks_systems.sql We now have analytics for the operating systems used by users. 2018-02-04 08:15:20 +00:00
query_widgets.sql Mostly a mid-way technical commit to make reading diffs easier on me. 2017-10-14 08:39:22 +01:00
query_word_filters.sql Added support for word filters. 2017-08-27 10:33:45 +01:00