Changing session.name size from char(50) to char(150) see BT#4875

skala
Julio Montoya 13 years ago
parent d83efa2c31
commit c22923497b
  1. 2
      main/install/db_main.sql
  2. 2
      main/install/migrate-db-1.9.0-1.10.0-pre.sql

@ -468,7 +468,7 @@ DROP TABLE IF EXISTS session;
CREATE TABLE IF NOT EXISTS session (
id smallint unsigned NOT NULL auto_increment,
id_coach int unsigned NOT NULL default '0',
name char(50) NOT NULL default '',
name char(150) NOT NULL default '',
nbr_courses smallint unsigned NOT NULL default '0',
nbr_users mediumint unsigned NOT NULL default '0',
nbr_classes mediumint unsigned NOT NULL default '0',

@ -45,6 +45,8 @@ ALTER TABLE grade_components ADD COLUMN count_elements INT DEFAULT 0;
CREATE TABLE IF NOT EXISTS session_field_options (id int NOT NULL auto_increment, field_id int NOT NULL, option_value text, option_display_text varchar(255), option_order int, tms DATETIME NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS course_field_options (id int NOT NULL auto_increment, field_id int NOT NULL, option_value text, option_display_text varchar(255), option_order int, tms DATETIME NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id));
ALTER TABLE session MODIFY COLUMN name CHAR(150) NOT NULL DEFAULT '';
-- Courses changes c_XXX
ALTER TABLE c_lp_item ADD INDEX idx_c_lp_item_cid_lp_id (c_id, lp_id);

Loading…
Cancel
Save