Comments (4)
fixed with 3.7.0
from php-database-migration.
It is not possible right now, but it sounds like a good idea.
The configuration loader use symfony/config
and symfony/yaml
, I will see if it can support environment variable out of the box.
Feel free to open a pull request if you want to contribute to the project.
from php-database-migration.
I think will be nice to add a .php configuration files support. Then we may use expressions inside config:
<?php
return [
'connection' => [
'host' => $_ENV['DB_HOST'] ?? 'localhost',
'driver' => 'pgsql',
'username' => $_ENV['DB_USERNAME'] ?? 'root'
....
]
];
I'll open a pull request.
from php-database-migration.
from php-database-migration.
Related Issues (9)
- take account of .sql files only to avoid swap files HOT 2
- [Insight] Error silenced by the at sign (@) - in Migrate/Migration.php, line 180
- Update `symfony/console` to 4.x HOT 3
- Allow a custom changelog table HOT 1
- The editor (vim) shouldn't be hardcoded, it should coming from the config.
- Changelog
- Status of project ? HOT 1
- Migrate Errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-database-migration.