Revision #11 has been created by camac on Oct 20, 2011, 12:25:24 AM with the memo:
Primary Key was wrong changed "PRIMARY KEY(idActiveRecordLog)" to "PRIMARY KEY(id)"
« previous (#10) next (#12) »
Changes
Title
unchanged
How to log changes of ActiveRecords?
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Logging
Content
changed
[...]
model VARCHAR(45) NULL,
idModel INTEGER UNSIGNED NULL,
field VARCHAR(45) NULL,
creationdate TIMESTAMP NOT NULL,
userid VARCHAR(45) NULL,
PRIMARY KEY(idActiveRecordLog)
)
TYPE=InnoDB;
The next step would be to create the corresponding Model using the YII Shell Tool:[...]