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
2
votes
1 answer

How to version records of table in database?

I have a table in a database that stores products to buy (let's call the table Product). It's necessary to track changes of every product. I have 2 ideas for versioning records. First is to create a new record in Product by copying the product and…
Dune
  • 674
  • 1
  • 9
  • 19
2
votes
2 answers

Versioning a dataset in an RDBMS using initials and deltas

I'm working on a system that mirrors remote datasets using initials and deltas. When an initial comes in, it mass deletes anything preexisting and mass inserts the fresh data. When a delta comes in, the system does a bunch of work to translate it…
spieden
  • 1,239
  • 1
  • 10
  • 23
2
votes
0 answers

Is it possible to revert version changes in PaperTrail without overwriting ones that came after?

I have a Rails project that has models versioned using the paper_trail gem. I'm looking to have that when I restore a version, I only want to change the fields that were changed in that particular version to be reverted, and not undo the changes of…
bwalshy
  • 1,096
  • 11
  • 19
2
votes
0 answers

Informix database versioning

I'm trying to figure out IBM Informix database versioning, or release naming conventions. I'm trying to map out the differences between minor versions and fixpacks. According to IBM's own documentation, the convention is: X.Y.C. But I'm looking at…
Lotusmeristem
  • 53
  • 3
  • 13
2
votes
1 answer

Database versioning without history tables

I was going through this post for record level versioning of tables. I noticed that the architecture deals with the usage of history tables. However, my scenario does not require rollback but retrieving point in time records. This is where I have…
dmachop
  • 824
  • 1
  • 21
  • 39
2
votes
1 answer

Databases in VCS with migrations

I have a database (SQL Server 2008 R2), which is mostly under source control (so one file per DB object, grouped together in folders e.g. tables, views, storedprocedures). At the moment, changes are made by writing SQL upgrade scripts, and then some…
2
votes
1 answer

FluentMigrator - how to alter table permissions?

I have started using FluentMigrator as my database migration tool for my MSSQL databases. It seems to cater for most of my needs in regards to CRUD table operations and seeding. However i simply cannot find a way to configure table permissions after…
2
votes
0 answers

Magento setup on AWS

We had a On Prem Setup for Magento and it was working fine however we migrated it to AWS environment and our site performance is gone down very drastically especially the DB sever. Is there any To DO or check list that we can run and find out route…
2
votes
4 answers

How to version SQL Server schema using VS 2005?

I am new to C# programming and am coming to it most recently from working with Ruby on Rails. In RoR, I am used to being able to write schema migrations for the database. I would like to be able to do something similar for my C#/SQLServer…
Mike
  • 3,663
  • 3
  • 20
  • 12
2
votes
1 answer

Database objects version control (not schema)

I'm trying to figure out how to implement version control in an environment where we have two DBs: one Testing and one Production. In Testing. there are an arbitrary number of tasks being tested. These have no constraints in number of objects…
jcd
  • 300
  • 2
  • 13
2
votes
2 answers

What is the SQLiteOpenHelper version number based upon?

I've got an Android app I'm about ready to release, and I'm reviewing some of my code. I'm worried about my implementation for my SQLiteOpenHelper. Specifically, I want to verify what the oldVersion and newVersion reference in the onUpgrade…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
2
votes
2 answers

Can I create a brand new oracle db/schema with roundhouse?

I am a bit new to Oracle, having used mostly SQL, so some of my understanding of how oracle works and what users/connection strings to use might be wrong or non existant. I am trying to use roundhouse to create/manage an Oracle database. For now I…
Chaitanya
  • 5,203
  • 8
  • 36
  • 61
2
votes
1 answer

Full Database Versioning in SQL Server

First, let me point out that I read all the posts regarding database versioning, but this isn't exactly the thing I'm looking for, but I couldn't come up with a better title (the word 'full' here is the key). I have a 'compiled database', that holds…
Tiborg
  • 2,304
  • 2
  • 26
  • 33
2
votes
2 answers

How to implement row-wise versioning using mysql + java?

Lets say for an example we have a table called student (sID is the primary key, isValid=1 means the row is valid and 0 is invalid for the moment) sId sName gpa isValid 1 Tom 3.0 1 2 Hanks 3.5 1 now let's assume…
NULL_USER
  • 125
  • 1
  • 2
  • 8
1
vote
2 answers

Database in version control using Visual Studio 2010 Professional

I've added a SQL Server 2008 database project to my Visual Studio 2010 Professional Edition solution in the hope that it might allow me to include my database in version control. I can commit the schema files for each database object into version…
Andy
  • 7,646
  • 8
  • 46
  • 69