Yii 1.1: dlhelperdatabase

Simple export / import sql from database
12 followers

Simple export / import sql from database

Requirements

Yii 1.1 or above

Usage

//export
DLDatabaseHelper::export();
//import
DLDatabaseHelper::import('/file/path/sql.sql');

Total 1 comment

#15972 report it
FlavorFlav at 2014/01/06 06:40am
wrong export

not useable for complex databases with foreign keys. it does not care about a senseful order of the exported tables. this means import fails when it tries to create foreign keys to tables which does not exist already.

Leave a comment

Please to leave your comment.

Create extension