Adding DB changes for the Career and Promotions see BT#1619

skala
Julio Montoya 14 years ago
parent 89b044fc2f
commit 1516535e3b
  1. 19
      main/install/db_main.sql
  2. 4
      main/install/migrate-db-1.8.7-1.8.8-pre.sql

@ -461,6 +461,7 @@ CREATE TABLE session (
session_admin_id INT UNSIGNED NOT NULL,
visibility int NOT NULL default 1,
session_category_id int NOT NULL,
promotion_id INT NOT NULL,
PRIMARY KEY (id),
INDEX (session_admin_id),
UNIQUE KEY name (name)
@ -2508,3 +2509,21 @@ CREATE TABLE course_request (
PRIMARY KEY (id),
UNIQUE KEY code (code)
);
CREATE TABLE career (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL ,
description TEXT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE promotion (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL ,
description TEXT NOT NULL,
career_id INT NOT NULL,
PRIMARY KEY(id)
);

@ -147,3 +147,7 @@ ALTER TABLE quiz_question ADD COLUMN extra varchar(255) DEFAULT NULL;
INSERT INTO course_setting(variable,value,category) VALUES ('enable_lp_auto_launch',0,'learning_path');
INSERT INTO course_setting(variable,value,category) VALUES ('pdf_export_watermark_text','','course');
CREATE TABLE career ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL ,description TEXT NOT NULL,PRIMARY KEY (id));
CREATE TABLE promotion (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL, career_id INT NOT NULL,PRIMARY KEY(id));
ALTER TABLE session ADD promotion_id INT NOT NULL;

Loading…
Cancel
Save