# GIT v(+) database versioning question

1 messages from 2016-03-26 to 2016-03-26. Participants: Vít Procházka.
Thread: https://gitlist.dev/t/41833

## Vít Procházka, 2016-03-26 10:50

Subject: GIT v(+) database versioning question
Message-ID: <56F66979.2050301@atlas.cz>
URL: https://gitlist.dev/e/56F66979.2050301%40atlas.cz

```
Hello,

may I ask a question: what would be the best way to achieve this with GIT:

Database versioning scripts shall be (1) numbered (due to DBmaintain)  
and (2) incremental.

ad 1) When a developer commits a script, I should get the next higher 
number
than the last committed script. E.g. 045_customers.SQL, 046_orders.SQL etc

ad 2) Scripts, which are once committed, should be immutable -- developers
should not be able to change them. They can only add new scripts.

Many thanks in advance,
V. Prochazka

```
