Browse Source

[svn r17736] Adding the access_url_rel_user table FS#3462

Julio Montoya 16 years ago
parent
commit
30006a698e
2 changed files with 21 additions and 3 deletions
  1. 16 2
      main/install/dokeos_main.sql
  2. 5 1
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

+ 16 - 2
main/install/dokeos_main.sql

@@ -683,7 +683,7 @@ VALUES
 ('show_administrator_data','false','No'),
 ('homepage_view','activity','HomepageViewActivity'),
 ('homepage_view','2column','HomepageView2column'),
-('homepage_view','3column','HomepageView3column'),
+('homepage_view','3column','HomepageView3columngradebook_result_log'),
 ('show_toolshortcuts','true','Yes'),
 ('show_toolshortcuts','false','No'),
 ('allow_group_categories','true','Yes'),
@@ -1024,6 +1024,7 @@ CREATE TABLE user_field_values(
 	tms TIMESTAMP,
 	PRIMARY KEY(id)
 );
+
 DROP TABLE IF EXISTS access_url;
 CREATE TABLE access_url(
 	id	int	unsigned NOT NULL auto_increment,
@@ -1034,8 +1035,20 @@ CREATE TABLE access_url(
 	tms TIMESTAMP,
 	PRIMARY KEY (id)
 );
-INSERT INTO access_url(url,description,active,created_by) VALUES ('http://localhost/','URL 1',1,1);
+
+INSERT INTO access_url(url, description, active, created_by) VALUES ('http://localhost/','URL 1',1,1);
+
+DROP TABLE IF EXISTS access_url_rel_user;
+CREATE TABLE access_url_rel_user (
+  access_url_id int unsigned NOT NULL,
+  user_id int unsigned NOT NULL,  
+  PRIMARY KEY (access_url_id, user_id)
+);
+INSERT INTO access_url_rel_user(access_url_id, user_id) VALUES (1,1);
+
 ALTER TABLE gradebook_category ADD session_id int DEFAULT NULL;
+
+DROP TABLE IF EXISTS gradebook_result_log;
 CREATE TABLE gradebook_result_log (
 	id int NOT NULL auto_increment,
 	id_result int NOT NULL,
@@ -1046,6 +1059,7 @@ CREATE TABLE gradebook_result_log (
 	PRIMARY KEY(id)
 );
 
+DROP TABLE IF EXISTS gradebook_linkeval_log;
 CREATE TABLE gradebook_linkeval_log (
 	id int NOT NULL auto_increment,
 	id_linkeval_log int NOT NULL,

+ 5 - 1
main/install/migrate-db-1.8.5-1.8.6-pre.sql

@@ -58,7 +58,11 @@ CREATE TABLE reservation_main  (id int unsigned NOT NULL auto_increment,   subid
 CREATE TABLE reservation_subscription  (dummy  int unsigned NOT NULL auto_increment,   user_id  int unsigned NOT NULL default 0,   reservation_id  int unsigned NOT NULL default 0,   accepted  tinyint unsigned NOT NULL default 0,   start_at  datetime NOT NULL default '0000-00-00 00:00:00',   end_at  datetime NOT NULL default '0000-00-00 00:00:00',  PRIMARY KEY  ( dummy ));
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('allow_reservation', NULL, 'radio', 'Tools', 'false', 'AllowReservationTitle', 'AllowReservationComment', NULL, NULL);
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_reservation', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_reservation', 'false', 'No'); 
+INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_reservation', 'false', 'No');
+CREATE TABLE access_url_rel_user (access_url_id int unsigned NOT NULL, user_id int unsigned NOT NULL, PRIMARY KEY (access_url_id, user_id));
+INSERT INTO access_url_rel_user(access_url_id, user_id) VALUES (1,1);
+
+ 
 
 -- xxSTATSxx
 ALTER TABLE track_e_exercices ADD status varchar(20) NOT NULL default '';