[svn r18404] Fixing SVN#18373 - adding default 0

skala
Julio Montoya 16 years ago
parent 49736e08cf
commit a7df8b5d7a
  1. 4
      main/inc/lib/add_course.lib.inc.php
  2. 4
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

@ -783,7 +783,7 @@ function update_Db_course($courseDbName)
filetype set('file','folder') NOT NULL default 'file',
size int NOT NULL default 0,
readonly TINYINT UNSIGNED NOT NULL,
session_id int UNSIGNED NOT NULL,
session_id int UNSIGNED NOT NULL default 0,
PRIMARY KEY (`id`)
)";
api_sql_query($sql, __FILE__, __LINE__);
@ -1142,7 +1142,7 @@ function update_Db_course($courseDbName)
"theme varchar(255) not null default '', " . //stores the theme of the LP
"preview_image varchar(255) not null default '', " . //stores the theme of the LP
"author varchar(255) not null default '', " . //stores the theme of the LP
"session_id int unsigned not null " . //the session_id
"session_id int unsigned not null default 0 " . //the session_id
")";
if(!api_sql_query($sql, __FILE__, __LINE__))
{

@ -220,5 +220,5 @@ INSERT INTO user_friend_relation_type(id,title)VALUES(3,'Friend');
INSERT INTO user_friend_relation_type(id,title)VALUES(4,'GoodFriend');
INSERT INTO user_friend_relation_type(id,title)VALUES(5,'Enemy');
INSERT INTO user_friend_relation_type(id,title)VALUES(6,'Deleted');
ALTER TABLE lp ADD session_id int unsigned not null;
ALTER TABLE document ADD session_id int unsigned not null;
ALTER TABLE lp ADD session_id int unsigned not null default 0;
ALTER TABLE document ADD session_id int unsigned not null default 0;

Loading…
Cancel
Save