Questions tagged [database-versioning]

Database versioning is the management and tracking of changes made to a database. All changes to scripts that define tables, procedures, triggers, views, indexes, sequences and other user defined objects are stored and versioned. Database versioning can also refer to the management and tracking of all database data where every Insert/Update/Delete operation is stored with intent to keep a permanent log of who performed which modifications.

Database versioning is the management and tracking of changes made to a database. All changes to scripts that define tables, procedures, triggers, views, indexes, sequences and other user defined objects are stored and versioned.

The date of the change, the user who made the change, and the content of that change is kept in a log for later review to enforce accountability for people making changes.

Database versioning can also refer to the management and tracking of all database data where every Insert/Update/Delete operation is stored with intent to keep a permanent log of who performed which modifications.

The purpose of database versioning is to assist in the detection and resolution of fraudulent or accidental modifications. With database versioning, hiding fraudulent modifications becomes more difficult. Without database versioning, accountability for who edited the database will be invisible and users committing fraudulent edits to the database can cover their tracks easily by making additional edits.

147 questions
6
votes
3 answers

IS there any Tool or API to auto update a database structure

In an application that I am supporting, lately I have made several changes to the DB structure. I send the update to the users, but its very hard to keep them all up-to-date. Is there any simple way to do this ? Something that enables users to skip…
Jlouro
  • 4,515
  • 9
  • 60
  • 91
5
votes
1 answer

Simple version-control systems or versioning file system or versioning database

I am looking for a simple versioning system for a large number of records or files (~50 million, ~100GB unpacked, ~20MB packed). The files are only a few Kilobytes each, and have unique IDs, so I don't mind whether they are stored in a flat…
Jakob
  • 3,570
  • 3
  • 36
  • 49
5
votes
2 answers

Is there a way to generate Liquibase data in the right order?

I'm using Liquibase for versioning an existing database, so I'm using liquibase \ --logLevel=debug \ --driver=com.mysql.jdbc.Driver \ --classpath=lib/mysql-connector-java-5.1.30.jar \ --url="jdbc:mysql://127.0.0.1:3306/schema" \ …
DaJackal
  • 2,085
  • 4
  • 32
  • 48
5
votes
2 answers

Need a .NET database versioning script runner

I'm looking at versioning databases and came across the usual articles regarding how to do this (coding horror, ode to code, etc). This all make perfect sense to me, however I'm trying to find a script runner that will run the sql scripts for me.…
Matt Brailsford
  • 2,209
  • 3
  • 28
  • 40
5
votes
2 answers

Nontrivial incremental change deployment with Visual Studio database projects

Let's assume that I'm doing some sort of nontrivial change to my database, which requires "custom" work to upgrade from version A to B. For example, converting user ID columns from UUID data type to the Windows domain username. How can I make this…
Sander
  • 25,685
  • 3
  • 53
  • 85
5
votes
1 answer

Is there a recent version of Visual Studio Team Edition for Database Professionals?

I was just looking into some articles about version control for databases and came across a blog by Jeff Atwood where he recommends Visual Studio Team Edition for Database Professionals. He provided a link to a trial, but the only problem is that…
Brandon Moore
  • 8,590
  • 15
  • 65
  • 120
4
votes
4 answers

Database Versioning Using Visual Studio

In the SO podcast episode 54 Jeff talked about using Visual Studio to save all the database objects to individual files. This sounded like just what my team needed to better implement database schema changes into TFS and I told my lead about it. …
wcm
  • 9,045
  • 7
  • 39
  • 64
4
votes
1 answer

Hibernate (JPA): how to handle StaleObjectStateException when several object has been modified and commited

Consider the scenario: A Db transaction envolving more than one row from different tables with versioning. For example: A shopLists and products. Where a shopList may contain products (with their amount in the shoplist) and products have their…
4
votes
3 answers

Doctrine migrations fallback

We're using doctrine migrations and there often are problems when the migration contains multiple actions and one of them fails. For example, if there is a migration adding 5 foreign keys and the 5th of them fails while fields aren't of the same…
Fluffy
  • 27,504
  • 41
  • 151
  • 234
4
votes
1 answer

Database version control plan: hot or not?

Based on reading around the web, stack overflow, and mostly these articles about db versioning that were linked from coding horror, I've made a stab at writing a plan for versioning the database of an 8 year old php mysql website. Database Version…
Matt
  • 3,778
  • 2
  • 28
  • 32
4
votes
0 answers

How to do, 'Versioning with a History Table' in Flask SQLALchemy. Preferably with some code examples

My models are made of flask-sqlalchemy on top of postgresql. I want to keep track of changes made my models. I have a employees table: class Employee(db.Model): __tablename__ = 'employees' id = db.Column(db.Integer,…
4
votes
2 answers

Are there any best practices using Doctrine 2 migrations on different GIT branches?

I am working on Zend Framework 2 project with Doctrine 2 dependency. Source versioning is handle by GIT. We are using GitFlow as a branching model. The problematic situation: Migrations on Develop branch: 001.php 002.php 003.php 004.php Migrations…
4
votes
1 answer

Is it possible to configure ArangoDB to make snapshots of the graph database at specific times?

so far I know ArangoDB uses MVCC and therefore it creates revisions of nodes and edges for a undefined period of time until the garbage collector removes them. I would like to implement a graph database schema and I need to keep the state of this…
mawey
  • 93
  • 5
3
votes
1 answer

How do you approach database versioning when doing regular builds?

I have a web application project that works with a quite large database (over 5 GB). Data in the database is partitioned by project. Each project takes approximately 1 GB, and it is a minimal set for the application to work (we do some math…
bychkov
  • 1,503
  • 1
  • 13
  • 26
3
votes
1 answer

how to get Roundhouse to create db on second hard drive

I want Roundhouse to create the db on a second hd (not the C drive which it does right now). Is there any way in Roundhouse to do this ? Iam using sql server 2008 r2 express. I tried the -cds option for custom db creation but it gives an error…
Gullu
  • 3,477
  • 7
  • 43
  • 70
1 2
3
9 10