Giter Club home page Giter Club logo

silex-doctrine-migrations's Introduction

Silex Migration Provider

This is a wrapper for the Doctrine Migrations project.

For more information on how to use the schema manager, please see Doctrine's Schema Manager documentation.

Install via Composer

composer.phar require dbtlr/silex-doctrine-migrations

Add service provider

$app->register(new \Dbtlr\MigrationProvider\Provider\MigrationServiceProvider(), array(
    'db.migrations.path' => __DIR__ . '/../app/migrations',
));

Config options

  • db.migrations.path (required): The full path where you want to store your migration classes.
  • db.migrations.table_name (optional): The name of the table that we store meta information about the state of migrations. Defaults to: migration_versions.
  • db.migrations.namespace (optional): The namespace for the migration classes (defaults to: DoctrineMigration).
  • db.migrations.name (optional): TThe name of the migrations to use.

Available commands

  • migrations:execute Execute a single migration version up or down manually.
  • migrations:generate Generate a blank migration class.
  • migrations:migrate Execute a migration to a specified version or the latest available version.
  • migrations:status View the status of a set of migrations.
  • migrations:version Manually add and delete migration versions from the version table.

silex-doctrine-migrations's People

Contributors

dbtlr avatar lpopov avatar

Watchers

 avatar James Cloos avatar

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.