Difference between #10 and #11 of
How to log changes of ActiveRecords?

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(id
ActiveRecordLog)
)
TYPE=InnoDB;

The next step would be to create the corresponding Model using the YII Shell Tool:
[...]
31 1
47 followers
Viewed: 72 565 times
Version: 1.1
Category: Tutorials
Tags: Logging
Written by: pfth
Last updated by: Yang He
Created on: Feb 13, 2009
Last updated: 11 years ago
Update Article

Revisions

View all history