From 1d01b63ea77d1c8886bd95d9affd1ac5537af8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Tue, 12 Jan 2016 19:33:38 +0100 Subject: [PATCH] Version 15.110.5 --- sql/swad.sql | 7 +++++++ swad_changelog.h | 6 +++++- swad_database.c | 16 ++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/sql/swad.sql b/sql/swad.sql index 3dbcf352b..8e8ed16a9 100644 --- a/sql/swad.sql +++ b/sql/swad.sql @@ -960,6 +960,13 @@ CREATE TABLE IF NOT EXISTS social_pubs ( INDEX(PubType), INDEX(TimePublish)); -- +-- Table social_timelines: stores notes published in social timeline for every active session +-- +CREATE TABLE IF NOT EXISTS social_timelines ( + SessionId CHAR(43) NOT NULL, + NotCod BIGINT NOT NULL, + UNIQUE INDEX(SessionId,NotCod)); +-- -- Table sta_degrees: stores statistics about degrees -- CREATE TABLE IF NOT EXISTS sta_degrees ( diff --git a/swad_changelog.h b/swad_changelog.h index 5054a463f..87e54b5d6 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -122,13 +122,17 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.110.4 (2016-01-12)" +#define Log_PLATFORM_VERSION "SWAD 15.110.5 (2016-01-12)" #define CSS_FILE "swad15.110.2.css" #define JS_FILE "swad15.107.2.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.110.5: Jan 12, 2016 New database table used to store social notes already present in every timeline. (192288 lines) + 1 change necessary in database: +CREATE TABLE IF NOT EXISTS social_timelines (SessionId CHAR(43) NOT NULL,NotCod BIGINT NOT NULL,UNIQUE INDEX(SessionId,NotCod)); + Version 15.110.4: Jan 12, 2016 Database table with social comments renamed. (192263 lines) 2 changes necessary in database: DROP TABLE social_comments; diff --git a/swad_database.c b/swad_database.c index 09fb8d43d..04c0077a9 100644 --- a/swad_database.c +++ b/swad_database.c @@ -2029,6 +2029,22 @@ mysql> DESCRIBE social_pubs; "INDEX(PubType)," "INDEX(TimePublish))"); + /***** Table social_timelines *****/ +/* +mysql> DESCRIBE social_timelines; ++-----------+------------+------+-----+---------+-------+ +| Field | Type | Null | Key | Default | Extra | ++-----------+------------+------+-----+---------+-------+ +| SessionId | char(43) | NO | PRI | NULL | | +| NotCod | bigint(20) | NO | PRI | NULL | | ++-----------+------------+------+-----+---------+-------+ +2 rows in set (0.00 sec) +*/ + DB_CreateTable ("CREATE TABLE IF NOT EXISTS social_timelines (" + "SessionId CHAR(43) NOT NULL," + "NotCod BIGINT NOT NULL," + "UNIQUE INDEX(SessionId,NotCod))"); + /***** Table sta_degrees *****/ /* mysql> DESCRIBE sta_degrees;