34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
How to log changes of ActiveRecords?
Comparing
#10
with
#11
Revision #11 was created by
camac
on Oct 20, 2011, 12:25:24 AM.
Primary Key was wrong changed "PRIMARY KEY(idActiveRecordLog)" to "PRIMARY KEY(id)"
« Previous (#10)
Next (#12) »
Content
[...]
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:
[...]