View Issue Details

IDProjectCategoryView StatusLast Update
0004846mantisbtinstallationpublic2005-04-18 10:26
Reportervny Assigned Tograngeway  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
Product Version0.19.1 
Summary0004846: MSSQL DB creation : mantis_user_pref_table
Description

CREATE TABLE mantis_user_pref_table (
id int NOT NULL IDENTITY (1, 1),
user_id int NOT NULL default '0',
project_id int NOT NULL default '0',
default_profile int NOT NULL default '0',
default_project int NOT NULL default '0',
advanced_report tinyint NOT NULL default '0',
advanced_view tinyint NOT NULL default '0',
advanced_update tinyint NOT NULL default '0',
refresh_delay int NOT NULL default '0',
redirect_delay bit NOT NULL default '0',
bugnote_order varchar(4) NOT NULL default 'ASC',
email_on_new bit NOT NULL default '0',
email_on_assigned bit NOT NULL default '0',
email_on_feedback bit NOT NULL default '0',
email_on_resolved bit NOT NULL default '0',
email_on_closed bit NOT NULL default '0',
email_on_reopened bit NOT NULL default '0',
email_on_bugnote bit NOT NULL default '0',
email_on_status bit NOT NULL default '0',
email_on_priority bit NOT NULL default '0',
email_on_priority_minimum_severity int NOT NULL default '10',
email_on_status_minimum_severity int NOT NULL default '10',
email_on_bugnote_minimum_severity int NOT NULL default '10',
email_on_reopened_minimum_severity int NOT NULL default '10',
email_on_closed_minimum_severity int NOT NULL default '10',
email_on_resolved_minimum_severity int NOT NULL default '10',
email_on_feedback_minimum_severity int NOT NULL default '10',
email_on_assigned_minimum_severity int NOT NULL default '10',
email_on_new_minimum_severity int NOT NULL default '10',
email_bugnote_limit int NOT NULL default '0',
language varchar(32) NOT NULL default 'english',
PRIMARY KEY (id)
)

BUT : problem on adding new account : Syntax error converting the varchar value 'any' to a column of data type int.
For fields : email_onstatus...

TagsNo tags attached.

Relationships

duplicate of 0005289 closedgrangeway Use ADODB DataDict for DB Creation / Upgrade 

Activities

grangeway

grangeway

2005-02-28 05:18

reporter   ~0009396

Both the mssql.sql and pgsql.sql are out of date.

For the next release, i'm hoping to get an adodb data dict schema defined which will generate the mssql/pgsql tables. As adodb's datadict is generic, this means that we won't have to keep multiple schema files in check. It also means that it may be possible to use other db's that are supported by adodb's datadict with mantis.

If this functionality goes into the next release, the mssql/pgsql.sql files will become redundant.

Notes:

  1. The aim is to have the generated adodb schema match the existing schema's created by the sql files.
  2. Once the code is added to CVS, it would be interesting to get some feedback, or any differences in the schema to the existing databases you are using

I'm going to use issue 0005289 to track the datadict stuff, so closing this issue now.