mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-28 01:23:55 -07:00
Added chat history to a room that is displayed on join.
With this update a new chat history definition is added on a per room bases which allows operators to specify the number of chat messages to store and present to the user on join. Please see the sample ini for room definitions.
This commit is contained in:
parent
f97a7e8370
commit
87a64da1bc
23 changed files with 141 additions and 16 deletions
6
servatrice/migrations/servatrice_0008_to_0009.sql
Normal file
6
servatrice/migrations/servatrice_0008_to_0009.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-- Servatrice db migration from version 8 to version 9
|
||||
|
||||
alter table cockatrice_rooms add chat_history_size int(4) not null after join_message;
|
||||
update cockatrice_rooms set chat_history_size = 100;
|
||||
|
||||
UPDATE cockatrice_schema_version SET version=9 WHERE version=8;
|
||||
Loading…
Add table
Add a link
Reference in a new issue