albertborsos / yii2-historizer
Yii2 Model Historizer Extension
Package info
github.com/albertborsos/yii2-historizer
Type:yii2-extension
pkg:composer/albertborsos/yii2-historizer
1.1.1
2015-04-07 08:58 UTC
Requires
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Yii2 Model Historizer Extension
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist albertborsos/yii2-historizer "*"
or add
"albertborsos/yii2-historizer": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \albertborsos\yii2historizer\AutoloadExample::widget(); ?>
Init
CREATE TABLE IF NOT EXISTS `ext_historizer_archives` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `model_class` varchar(512) NOT NULL, `model_id` int(11) NOT NULL, `model_attributes` text NOT NULL, `created_at` INT NOT NULL, `created_user` INT NOT NULL, `updated_at` INT NOT NULL, `updated_user` INT NOT NULL, `status` varchar(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;