Package Data | |
---|---|
Maintainer Username: | Jezzis |
Maintainer Contact: | songzijian728@gmail.com (jezzis) |
Package Create Date: | 2016-11-23 |
Package Last Update: | 2017-08-11 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-16 15:03:09 |
Package Statistics | |
---|---|
Total Downloads: | 53 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This tool provide an easy way to synchronize database structure including tables, views, functions, procedures for Laravel 5.
"jezzis/mysqlsyncer":"dev-master"
to your composer.json. Then run composer install
or composer update
.
config/app.php
add Jezzis\MysqlSyncer\MysqlSyncerServiceProvider::class
If you want to customize the base path of the sql file, please copy src/config.php to laravel project config directory, rename it to msyncer.php
return [
'sql_path' => './', // sql file base path where MySQL-Syncer is looking for.
'driver' => 'mysql', // connection driver, currently only supports MySQL.
];
run the command in console:
# php artisan db:sync --drop <file>
Grant select privilege on mysql.func and mysql.proc to make sure the tools can fetch the definition of functions & procedure.
mysql-syncer is free software distributed under the terms of the MIT license.
Support follows PSR-1 and PSR-4 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.