Giter Site home page Giter Site logo

alwex / php-database-migration Goto Github PK

View Code? Open in Web Editor NEW
85.0 85.0 33.0 167 KB

Database Migration tool for PHP

Home Page: https://alwex.github.io/php-database-migration/

PHP 96.94% Smarty 1.73% Shell 0.39% Dockerfile 0.94%
database-migrations php php-database-migration

php-database-migration's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

php-database-migration's Issues

Environment variables in env files

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!

Status of project ?

Is this project anymore maintained ? I would like to with latest symfony but no luck due to old dependencies.

[Insight] Error silenced by the at sign (@) - in Migrate/Migration.php, line 180

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

Changelog

The tool should have a Changelog.md

Migrate Errors

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.