https://github.com/danielgp/fk-scale-mysql
Scaling up the column type for fields used in foreign keys in MySQL can be a daunting activity, now this will be no more!
https://github.com/danielgp/fk-scale-mysql
Last synced: 5 months ago
JSON representation
Scaling up the column type for fields used in foreign keys in MySQL can be a daunting activity, now this will be no more!
- Host: GitHub
- URL: https://github.com/danielgp/fk-scale-mysql
- Owner: danielgp
- License: mit
- Created: 2015-11-17T22:20:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-27T22:49:09.000Z (over 8 years ago)
- Last Synced: 2025-01-10T21:46:50.606Z (6 months ago)
- Language: PHP
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fk-scale-mysql
Scaling up the column type for fields used in foreign keys in MySQL can be a daunting activity, now this will be no more!Packagist statistics by poser.pugx.org
[](https://packagist.org/packages/danielgp/fk-scale-mysql)
[](https://packagist.org/packages/danielgp/fk-scale-mysql)
[](https://packagist.org/packages/danielgp/fk-scale-mysql)
[](https://packagist.org/packages/danielgp/fk-scale-mysql)
[](https://packagist.org/packages/danielgp/fk-scale-mysql)Code quality analysis
[](https://insight.sensiolabs.com/projects/c392dde2-7f81-413c-9c80-da48a3a4b89c)
[](https://www.codacy.com/app/danielpopiniuc/fk-scale-mysql)
[](https://scrutinizer-ci.com/g/danielgp/fk-scale-mysql/?branch=master)
[](https://scrutinizer-ci.com/g/danielgp/fk-scale-mysql/build-status/master)In order to use this package following steps have to be followed:
- Make sure you have installed Composer (https://getcomposer.org/doc/00-intro.md) as the used libraries are not distributed by default in the package on GitHub;
- Run "composer update" command from the root folder of this package (same place where "composer.json" is placed;
- Either have access to MySQL to add a new user (default one stored in the configuration (GRANT SELECT ON *.* TO "web_fk_scale"@"127.0.0.1" IDENTIFIED BY PASSWORD "*929090A686FB866B5F4B8A89D53E78FAE36D9FDD"; FLUSH PRIVILEGES;) or amend the configuration file (ConfigurationMySQL.php) to match a user that has at least SELECT access to target database and all its dependences (if not all dependencies are known, just allow the user to have read-only access to everything);
- Should you choose to give it a try on an already tested database, you can download "world" database from MySQL official site: http://dev.mysql.com/doc/index-other.htmlFinal remark: This packages only analyze (not a single modification is performed) and only provides sequence of query to make necessary scaling (up or down) of Foreign Keys in MySQL databases starting from a combination of a Database/Table/Column!
(https://github.com/danielgp/fk-scale-mysql)