{"thread":{"id":"41833","subject":"GIT v(+) database versioning question","startedAt":"2016-03-26T10:50:33Z","lastAt":"2016-03-26T10:50:33Z","messageCount":1,"participants":["Vít Procházka"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"281906","messageId":"56F66979.2050301@atlas.cz","threadId":"41833","inReplyTo":null,"subject":"GIT v(+) database versioning question","fromName":"Vít Procházka","fromEmail":"vitpro@atlas.cz","sentAt":"2016-03-26T10:50:33Z","receivedAt":"2016-03-26T10:50:33Z","isPatch":false,"sender":{"key":"vitpro@atlas.cz","avatar":null},"body":"Hello,\n\nmay I ask a question: what would be the best way to achieve this with GIT:\n\nDatabase versioning scripts shall be (1) numbered (due to DBmaintain)  \nand (2) incremental.\n\nad 1) When a developer commits a script, I should get the next higher \nnumber\nthan the last committed script. E.g. 045_customers.SQL, 046_orders.SQL etc\n\nad 2) Scripts, which are once committed, should be immutable -- developers\nshould not be able to change them. They can only add new scripts.\n\nMany thanks in advance,\nV. Prochazka\n"}]}