Skip to content

Instantly share code, notes, and snippets.

@MartinMajor
MartinMajor / DatabaseDeployPresenter.php
Created July 24, 2013 12:47
Tools for database versioning. For more informations see: http://www.youtube.com/watch?v=KTmlw5AKM8E (in CZ). - database.sql script is written for PostgreSQL - DatabaseDeployPresenter.php script is a snippet from Nette presenter - post-checkout is Git hook, that calls shell script that just runs your Nette presenter
/**
* Startup
*/
public function startup()
{
parent::startup();
// plain text output when http request
$this->getHttpResponse()->setContentType('text/plain');