projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73d3aa3
)
DataObjects/core.sql
author
Alan Knowles
<alan@roojs.com>
Wed, 28 Sep 2011 04:11:12 +0000
(12:11 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 28 Sep 2011 04:11:12 +0000
(12:11 +0800)
DataObjects/core.sql
patch
|
blob
|
history
diff --git
a/DataObjects/core.sql
b/DataObjects/core.sql
index
5fbabf8
..
aa17ec7
100644
(file)
--- a/
DataObjects/core.sql
+++ b/
DataObjects/core.sql
@@
-56,19
+56,19
@@
CREATE TABLE `Events` (
PRIMARY KEY (`id`)
) ;
PRIMARY KEY (`id`)
) ;
-
-ALTER TABLE Events CHANGE COLUMN EventID id INT(11) AUTO_INCREMENT NOT NULL;
-ALTER TABLE Events CHANGE COLUMN User person_name VARCHAR(128);
ALTER TABLE Events ADD COLUMN person_id INT(11);
ALTER TABLE Events ADD COLUMN person_id INT(11);
+ALTER TABLE Events ADD COLUMN remarks INT(11);
+ALTER TABLE Events CHANGE COLUMN EventID id INT(11) AUTO_INCREMENT NOT NULL;
+ALTER TABLE Events CHANGE COLUMN User person_name VARCHAR(128);
ALTER TABLE Events CHANGE COLUMN Date event_when DATETIME;
ALTER TABLE Events CHANGE COLUMN Date event_when DATETIME;
-ALTER TABLE Events CHANGE
COLUMN Event action VARCHAR(32);
-ALTER TABLE Events CHANGE
COLUMN Host ipaddr VARCHAR(16);
+ALTER TABLE Events CHANGE COLUMN Event action VARCHAR(32);
+ALTER TABLE Events CHANGE COLUMN Host ipaddr VARCHAR(16);
ALTER TABLE Events CHANGE COLUMN ItemID on_id INT(11);
ALTER TABLE Events CHANGE COLUMN Container on_table VARCHAR(64);
ALTER TABLE Events CHANGE COLUMN ItemID on_id INT(11);
ALTER TABLE Events CHANGE COLUMN Container on_table VARCHAR(64);
-ALTER TABLE Events ADD COLUMN remarks INT(11);
-ALTER TABLE Events ADD COLUMN remarks INT(11);
+ALTER TABLE Events ADD INDEX lookup (remarks INT(11);
+
CREATE TABLE core_event_audit (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event_id` int(11) NOT NULL,
CREATE TABLE core_event_audit (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event_id` int(11) NOT NULL,