stanislav-janu/database-updater

Simple manager of database changes.

v3.0.0 2021-12-08 11:55 UTC

This package is auto-updated.

Last update: 2024-11-10 13:09:22 UTC


README

Simple way to keep your database fresh.

Installation

composer require stanislav-janu/database-updater

bootstrap.php

...
$container = $configurator->createContainer();

if(!Tracy\Debugger::$productionMode)
{
	$databaseUpdater = new JCode\DatabaseUpdater($container->getParameters()['wwwDir'], new Nette\Database\Context(
		$container->getService('database.default.connection'),
		$container->getService('database.default.structure')
	));
	$databaseUpdater->run();
}

return $container;

config.neon

tracy:
	bar:
		- JCode\DatabaseUpdaterPanel