https://github.com/25th-floor/migrations
https://github.com/25th-floor/migrations
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/25th-floor/migrations
- Owner: 25th-floor
- License: mit
- Created: 2016-03-30T13:46:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T03:25:40.000Z (about 2 years ago)
- Last Synced: 2025-04-22T21:50:42.249Z (about 1 month ago)
- Language: PHP
- Size: 85 KB
- Stars: 0
- Watchers: 7
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 25th Migrations
[](https://travis-ci.org/25th-floor/migrations)
This module allows to upgrade the database after source code changes by applying sql files in the database.
# Installation
Just install via composer
TODO
If you want an executable file somewhere in your project structure and not somewhere in vendors, composer will offer
you the possibility to define a bin-dir where all executabls are symlinked.```
{
"config": {
"bin-dir": "scripts"
}
}
```# Configuration
Migrations is configured via ZF1's application.ini which is loaded from `/application/configs/application.ini`.
Currently only Doctrine's DBAL configuration is used.
During runtime a APPLICATION_ENV must be set!
# Usage
## migrations status
`migrations status` will show you a list of all unapplied changes.
## migrations apply
`migrations apply next` will apply the next changeset.
`migrations apply all` will apply all missing changesets.
`migrations apply ` will apply the changeset .
With the `--only-mark` option you can apply the migration without executing it.
# Development
Running Tests:
```
# Unit tests
vendor/bin/phpunit tests/unit/# Component tests
docker-compose up -d
vendor/bin/phpunit tests/component/
```