git/list[1] front-page[2] threads[3] people[4] search[5] about
 

GIT v(+) database versioning question

From
VPVít Procházka <vitpro@atlas.cz>
Date
Mar 26, 2016, 10:50 UTC
Message-ID
<56F66979.2050301@atlas.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

Message 1 of 1 in “GIT v(+) database versioning question”
  1. Vít ProcházkaMar 26, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.