Componette

Componette

lovec

lovec / db-changelog v1.1.0

Extension for database migration for application build with Nette Framework

download-cloud-line composer require lovec/db-changelog

Db changelog handles changes in db structure.

Build Status Quality Score Code Coverage Downloads this Month Latest stable

It is a module Changelog. You can access it from browser by http://yourProject/db-changelog/ If you make changes in structure, access the url above and insert your sql code. It will show up in your git changes to commit.

In development mode, changelog automatically detect pulled changes in database and show them to execute in your local database. In production. You need to manually go to http://yourProject/db-changelog/ and execute changes

Requirements

  • PHP 5.5
  • Nette\Database

Install

Via Composer:

composer require lovec/db-changelog

Register extension in your config.neon:

extensions:
	changelog: Lovec\DbChangelog\DI\ChangelogExtension

changelog: # you can change these defaults
    dir: '%appDir%/changelog'
    table: changelog
bar-chart-fill

Statistics

download-cloud-fill
4459
star-fill
1
bug-fill
0
flashlight-fill
3y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=5.5)
Componette Componette felix@nette.org