stanislav-janu / database-updater
Simple manager of database changes.
Installs: 22 332
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- latte/latte: ^2.9 || ^3
- nette/database: ^3.1 || ^4
- nette/utils: ^3.2 || ^4
- tracy/tracy: ^2.7 || ^4
Requires (Dev)
- rector/rector: ^0.12
- stanislav-janu/phpstan: ^1.0
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