Package Data | |
---|---|
Maintainer Username: | tomzx |
Maintainer Contact: | tom@tomrochette.com (Tom Rochette) |
Package Create Date: | 2015-11-18 |
Package Last Update: | 2015-11-21 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-17 03:02:07 |
Package Statistics | |
---|---|
Total Downloads: | 34 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 3 |
Total Forks: | 1 |
Total Open Issues: | 3 |
This is a small package that builds on Laravel's wonderful database package. It extracts the database migration feature in order to use it in any project that may not be built on Laravel.
This is currently a proof of concept. There are rough edges (such as the configuration file and migrations folder location). Those should be fixed given enough time and feedback. Feel free to submit a PR if you have a suggestion on how to deal with those!
This project currently uses some from of "hack" by creating some files in the Illuminate/Foundation
namespace. It is expected you will not use this project within the context of a Laravel application, otherwise conflicts will occur.
Due to technical constraints, the folder structure in Laravel 4 has to be a certain way (specifically, we need a database/migrations
path). You can follow Laravel 5 instructions on how to get started, simply make sure that you create the database/migrations
path (instead of simply migrations
).
your-project
- database
-- database.php
-- database
--- migrations
---- 2015_11_17_215411_some_migration.php
- vendor
-- tomzx
--- LaravelMigration
The current implementation looks in the current working directory for a configuration file database.php
and migration files in the migrations
directory.
your-project
- database
-- database.php
-- migrations
--- 2015_11_17_215411_some_migration.php
- vendor
-- tomzx
--- LaravelMigration
To use the tool, you would call laravel-migration
within the database
directory in the following way:
php ../vendor/bin/laravel-migration
Thus, the current setup steps are:
database
directory where you will store your database.php
and migrations
filesdatabase.php
to your newly created directory and configure it to your needsmigrations
directory in the newly created directorylaravel-migration
!The code is licensed under the MIT license. See LICENSE.