alwex / php-database-migration Goto Github PK
View Code? Open in Web Editor NEWDatabase Migration tool for PHP
Home Page: https://alwex.github.io/php-database-migration/
Database Migration tool for PHP
Home Page: https://alwex.github.io/php-database-migration/
Is it possible to use environment variables in env configurations? I populated database credentials into system env and would like to use it in migrations. Thanks!
Is this project anymore maintained ? I would like to with latest symfony but no luck due to old dependencies.
in Migrate/Migration.php, line 180
Adding "@" before
$content = file_get_contents($migrationDir . '/' . $this->getFile())
prevents warning and errors during this function execution from being displayed.
If you need to do that, you should probably implement a better way to qualify and recover from errors, using Exceptions.
);
}
public function load($migrationDir)
{
@$content = file_get_contents($migrationDir . '/' . $this->getFile());
if ($content && strpos($content, '@UNDO') > 0) {
$sql = explode('-- @UNDO', $content);
$this->setSqlUp($sql[0]);
$this->setSqlDown($sql[1]);
}
Posted from SensioLabsInsight
symfony/console
has been released, could you update it to 4.x or loosen dependency to 4.x?
Allow a custom changelog table in the configuration file
The tool should have a Changelog.md
Errors from failed SQL execution from migration files not displayed. The console shows 100% complete even when there was an error executing the SQL script at the database side. The changelog also changes regardless of problems in execution. This can lead to failed migrations seen as completed.
if someone push a bad file (wim sap for example) in the migrations path, it will be taken into account. The migrator may avoid the no .sql files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.