Browse Source

[svn r18266] data by default in table user_friend_relation_type - (partial FS#3383)

Isaac Flores 16 years ago
parent
commit
107e289373
2 changed files with 14 additions and 0 deletions
  1. 8 0
      main/install/dokeos_main.sql
  2. 6 0
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

+ 8 - 0
main/install/dokeos_main.sql

@@ -1290,3 +1290,11 @@ ALTER TABLE message ADD INDEX idx_message_user_sender(user_sender_id);
 ALTER TABLE message ADD INDEX idx_message_user_receiver(user_receiver_id);
 ALTER TABLE message ADD INDEX idx_message_user_sender_user_receiver(user_sender_id,user_receiver_id);
 ALTER TABLE message ADD INDEX idx_message_msg_status(msg_status);
+INSERT INTO user_friend_relation_type (id,title)
+VALUES
+(1,'Unknow'),
+(2,'Parent'),
+(3,'Friend'),
+(4,'GoodFriend'),
+(5,'Enemy'),
+(6,'Deleted');

+ 6 - 0
main/install/migrate-db-1.8.5-1.8.6-pre.sql

@@ -212,3 +212,9 @@ ALTER TABLE quiz_question ADD level int UNSIGNED NOT NULL default 0;
 ALTER TABLE survey_invitation ADD COLUMN session_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0;
 ALTER TABLE quiz_answer   CHANGE ponderation ponderation float(6,2) NOT NULL DEFAULT 0;
 ALTER TABLE quiz_question CHANGE ponderation ponderation float(6,2) NOT NULL DEFAULT 0;
+INSERT INTO user_friend_relation_type(id,title)VALUES(1,'Unknow');
+INSERT INTO user_friend_relation_type(id,title)VALUES(2,'Parent');
+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');