BUG 0000 Case notes Index added and some changes to message body

Index for AppNotes table

Conflicts:

	workflow/engine/classes/model/AppNotes.php
This commit is contained in:
Hugo Loza
2011-07-26 16:53:54 -04:00
parent eb680847da
commit f38dc1045f
5 changed files with 74 additions and 10 deletions

View File

@@ -3014,3 +3014,7 @@ CREATE TABLE [APP_NOTES]
[NOTE_AFFECTED_OBJ2] VARCHAR(32) default '' NOT NULL,
[NOTE_RECIPIENTS] NVARCHAR(MAX) NULL
);
CREATE INDEX [indexAppNotesDate] ON [APP_NOTES] ([APP_UID],[NOTE_DATE]);
CREATE INDEX [indexAppNotesUser] ON [APP_NOTES] ([APP_UID],[USR_UID]);

View File

@@ -1351,7 +1351,9 @@ CREATE TABLE `APP_NOTES`
`NOTE_ORIGIN_OBJ` VARCHAR(32) default '',
`NOTE_AFFECTED_OBJ1` VARCHAR(32) default '',
`NOTE_AFFECTED_OBJ2` VARCHAR(32) default '' NOT NULL,
`NOTE_RECIPIENTS` MEDIUMTEXT
`NOTE_RECIPIENTS` MEDIUMTEXT,
KEY `indexAppNotesDate`(`APP_UID`, `NOTE_DATE`),
KEY `indexAppNotesUser`(`APP_UID`, `USR_UID`)
)ENGINE=MyISAM DEFAULT CHARSET='utf8' COMMENT='Application Notes';
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;