{"repo":"myaaghubi/f3-migrations","free":true,"listed":false,"github":"https://github.com/myaaghubi/f3-migrations","clone":"git clone https://github.com/myaaghubi/f3-migrations.git","description":"F3-Migrations is a database helper plugin for the Fat-Free framework.","language":"CSS","stars":15,"topics":["sql","database","database-migrations","migration","f3-migrations","fat-free-plugin","fat-free-framework"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"F3-Migrations F3-Migrations is a database helper plugin for the Fat-Free Framework. It's something like version control for the sql databases. Every time you have to make some changes manually in your database, you can make a MigrationCase , and the plugin will handle that. - F3-Migrations - Installation - Operation and basic usage - Instantiate - First migration - Config - Logging - CLI mode - Upgrade - License Installation If you use composer, run the below code: For manual installation: 1. Copy the content of lib/ folder into your lib/ folder. 2. Install Schema Builder as mentioned in its documentation. 3. Install Html2Text, by placing the html2text.php inside of a folder named html2text in your lib/ . Operation and basic usage The plugin provides a simple web interface, consists of 4 routes that will auto add to your app: GET /migrations displays the web interface GET /migrations/@action triggers an action GET /migrations/@action/@target specific target version for the action GET /migrations/theme/@type/@file to retrive css/js files if you have stored the UI dir in non-web-accessible path (recommended) Also, it will create a table in your database named migrations to handle migrations. Instantiate Instantiate the Migrations class before f3- run() . The plugin works if DEBUG =3 , otherwise, it goes disable because of security issues and to get no resource usage. To work with Migrations you need an active SQL connection: First migration 1. Make sure the path of your cases d","default_branch":null,"files":null,"tree":[],"storefront":"/r/myaaghubi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/myaaghubi/f3-migrations/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}