Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fusion/php-migrate
A migration tool, relying on YAML syntax, for your PHP projects
https://github.com/fusion/php-migrate
Last synced: 22 days ago
JSON representation
A migration tool, relying on YAML syntax, for your PHP projects
- Host: GitHub
- URL: https://github.com/fusion/php-migrate
- Owner: Fusion
- License: mit
- Created: 2009-04-10T22:36:33.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-04-10T23:01:04.000Z (over 15 years ago)
- Last Synced: 2024-10-16T08:19:02.893Z (2 months ago)
- Homepage: http://getsatisfaction.com/voilaweb
- Size: 82 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
This is a sub-project that I extracted from the PHP Framework I called 'Lenses' (http://github.com/Fusion/lenses/tree)
This project lets you perform database migrations, based on the YAML syntax, in PHP.LICENSE:
========See LICENSE.txt
USING THIS PROJECT:
===================The simplest path is to use the 'please' command-line shell script or, alternatively, access console.php through your web browser.
Of course, you may wish to integrate this code in your own project; simply include console.php and adapt to your liking.SETUP:
======You need the adodb abstraction library; download it (http://adodb.sourceforge.net/) and drop it in libs/adodb/
You also need spyc to parse YAML syntax; download the package (http://spyc.sourceforge.net/) and drop it in libs/spyc/
Configure your database information in config.phpTHE MIGRATIONS/ DIRECTORY:
==========================Contains all your migration files in YAML format.
Take a look at the example file that comes with this project.
Files are numbered to reflect version numbers.Each file contains two main sections:
up > describes what happens when migrating to a more recent version
down > describes what happens when reverting to an older versionEach section may contain three sub-sections:
drop, create and executeNote: a special table, called 'system' will keep track of migrations.
HELP!
=====A support community for everything VoilaWeb-related (that's my company) including open-source projects is available at:
http://getsatisfaction.com/voilaweb