Version 15.119

This commit is contained in:
Antonio Cañas Vargas 2016-01-18 19:27:43 +01:00
parent ba538c912f
commit 2e13d2089b
3 changed files with 57 additions and 2 deletions

View File

@ -915,7 +915,7 @@ CREATE TABLE IF NOT EXISTS sessions (
UNIQUE INDEX(SessionId),
INDEX(UsrCod));
--
-- Table social_notes: stores the content of comments to social notes
-- Table social_comments: stores the content of comments to social notes
--
CREATE TABLE IF NOT EXISTS social_comments (
ComCod BIGINT NOT NULL,
@ -923,6 +923,14 @@ CREATE TABLE IF NOT EXISTS social_comments (
UNIQUE INDEX(ComCod),
FULLTEXT(Content)) ENGINE = MYISAM;
--
-- Table social_comments_favs: stores users who marked social comments as favourite
--
CREATE TABLE IF NOT EXISTS social_comments_favs (
ComCod BIGINT NOT NULL,
UsrCod INT NOT NULL,
UNIQUE INDEX(ComCod,UsrCod),
INDEX(UsrCod));
--
-- Table social_notes: stores social notes
--
CREATE TABLE IF NOT EXISTS social_notes (
@ -938,6 +946,14 @@ CREATE TABLE IF NOT EXISTS social_notes (
INDEX(UsrCod),
INDEX(TimeNote));
--
-- Table social_notes_favs: stores users who marked social notes as favourite
--
CREATE TABLE IF NOT EXISTS social_notes_favs (
NotCod BIGINT NOT NULL,
UsrCod INT NOT NULL,
UNIQUE INDEX(NotCod,UsrCod),
INDEX(UsrCod));
--
-- Table social_posts: stores social posts (public comments written by users)
--
CREATE TABLE IF NOT EXISTS social_posts (

View File

@ -122,13 +122,18 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.118.4 (2016-01-18)"
#define Log_PLATFORM_VERSION "SWAD 15.119 (2016-01-18)"
#define CSS_FILE "swad15.117.css"
#define JS_FILE "swad15.118.4.js"
// Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
/*
Version 15.119: Jan 18, 2016 New tables to mark social notes and comments as favourites. (193036 lines)
2 changes necessary in database:
CREATE TABLE IF NOT EXISTS social_comments_favs (ComCod BIGINT NOT NULL,UsrCod INT NOT NULL,UNIQUE INDEX(ComCod,UsrCod),INDEX(UsrCod));
CREATE TABLE IF NOT EXISTS social_notes_favs (NotCod BIGINT NOT NULL,UsrCod INT NOT NULL,UNIQUE INDEX(NotCod,UsrCod),INDEX(UsrCod));
Version 15.118.4: Jan 18, 2016 Date-time without seconds in user's public profile. (192984 lines)
Version 15.118.3: Jan 18, 2016 Fixed bug in date-time of files in file-browsers. (192975 lines)
Version 15.118.2: Jan 18, 2016 Fixed bug in social_timelines table. (192973 lines)

View File

@ -1957,6 +1957,23 @@ mysql> DESCRIBE social_comments;
"UNIQUE INDEX(ComCod),"
"FULLTEXT(Content)) ENGINE = MYISAM;");
/***** Table social_comments_favs *****/
/*
mysql> DESCRIBE social_comments_favs;
+--------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+------------+------+-----+---------+-------+
| ComCod | bigint(20) | NO | PRI | NULL | |
| UsrCod | int(11) | NO | PRI | NULL | |
+--------+------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
*/
DB_CreateTable ("CREATE TABLE IF NOT EXISTS social_comments_favs ("
"ComCod BIGINT NOT NULL,"
"UsrCod INT NOT NULL,"
"UNIQUE INDEX(ComCod,UsrCod),"
"INDEX(UsrCod))");
/***** Table social_notes *****/
/*
mysql> DESCRIBE social_notes;
@ -1986,6 +2003,23 @@ mysql> DESCRIBE social_notes;
"INDEX(UsrCod),"
"INDEX(TimeNote))");
/***** Table social_notes_favs *****/
/*
mysql> DESCRIBE social_notes_favs;
+--------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------+------------+------+-----+---------+-------+
| NotCod | bigint(20) | NO | PRI | NULL | |
| UsrCod | int(11) | NO | PRI | NULL | |
+--------+------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
*/
DB_CreateTable ("CREATE TABLE IF NOT EXISTS social_notes_favs ("
"NotCod BIGINT NOT NULL,"
"UsrCod INT NOT NULL,"
"UNIQUE INDEX(NotCod,UsrCod),"
"INDEX(UsrCod))");
/***** Table social_posts *****/
/*
mysql> DESCRIBE social_posts;