mirror of
https://github.com/moodle/moodle.git
synced 2025-02-06 08:10:11 +01:00
2c0d657437
so chatters appear in the online users block so Tom is happy. :-) Seriously though, it's good to have talking events in the log.
59 lines
1.7 KiB
SQL
59 lines
1.7 KiB
SQL
#
|
|
# Table structure for table `chat`
|
|
#
|
|
|
|
CREATE TABLE prefix_chat (
|
|
id SERIAL,
|
|
course INTEGER NOT NULL default '0',
|
|
name varchar(255) NOT NULL default '',
|
|
intro text NOT NULL default '',
|
|
keepdays INTEGER NOT NULL default '0',
|
|
studentlogs INTEGER NOT NULL default '0',
|
|
chattime INTEGER NOT NULL default '0',
|
|
schedule INTEGER NOT NULL default '0',
|
|
timemodified INTEGER NOT NULL default '0',
|
|
PRIMARY KEY (id)
|
|
);
|
|
# --------------------------------------------------------
|
|
|
|
#
|
|
# Table structure for table `chat_messages`
|
|
#
|
|
|
|
CREATE TABLE prefix_chat_messages (
|
|
id SERIAL,
|
|
chatid integer NOT NULL default '0',
|
|
userid integer NOT NULL default '0',
|
|
groupid integer NOT NULL default '0',
|
|
system integer NOT NULL default '0',
|
|
message text NOT NULL default '',
|
|
timestamp integer NOT NULL default '0',
|
|
PRIMARY KEY (id)
|
|
);
|
|
# --------------------------------------------------------
|
|
|
|
#
|
|
# Table structure for table `chat_users`
|
|
#
|
|
|
|
CREATE TABLE prefix_chat_users (
|
|
id SERIAL,
|
|
chatid integer NOT NULL default '0',
|
|
userid integer NOT NULL default '0',
|
|
groupid integer NOT NULL default '0',
|
|
version varchar(16) NOT NULL default '',
|
|
ip varchar(15) NOT NULL default '',
|
|
firstping integer NOT NULL default '0',
|
|
lastping integer NOT NULL default '0',
|
|
lastmessageping integer NOT NULL default '0',
|
|
sid varchar(32) NOT NULL default '',
|
|
PRIMARY KEY (id)
|
|
);
|
|
|
|
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'view', 'chat', 'name');
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'add', 'chat', 'name');
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'update', 'chat', 'name');
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'report', 'chat', 'name');
|
|
INSERT INTO prefix_log_display VALUES ('chat', 'talk', 'chat', 'name');
|