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
1
vote
1 answer

How to skip all callbacks except paper-trail when updating an ActiveRecord model using update_column method?

I am new to rails. I want to track the versions of my record using paper_trail gem but I am not able to do so when I use the update_columns method. I think overriding the update_columns method may help me but I don't know how exactly should I write…
1
vote
0 answers

VS 2019 - When I press the F5 button on the SQL Server Database Project I don't want to deploy to the database. I just want to build the project

I am currently working on database versioning project. And I'm using a SQL Server Database Project for this. But we'll not use local database on the SSDT Project. Therefore I don't want to deployment when I press F5 button. I just want to build the…
1
vote
1 answer

Does the Azure Storage Emulator support blob versioning? If so, how do I enable it?

I am developing a C# ASP.NET Core web application for Azure. I am using the Microsoft Azure Storage Emulator for local testing: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-emulator I want to use blob versioning as described…
1
vote
1 answer

How to turn datamodel into a versioned datamodel in Xcode4?

I remember that in Xcode 3.x you could simply Add Model Version and Xcode would convert your datamodel into a versioned datamodel. For some reason when I try doing so following the same steps in Xcode4, it crashes the environment and doesn't make…
A Salcedo
  • 6,378
  • 8
  • 31
  • 42
1
vote
2 answers

Versioning default install/customized triggers and stored procedures

I'm a developer at a small company where we're struggling for consistent change control. I'm running into issues where non-dev staff are tweaking stored procedures and triggers in production installations. Their changes are being overwritten when we…
Steve
  • 21
  • 2
  • 5
1
vote
1 answer

Create database using Alembic

I have database migrations that use database1. I'm using it for Alembic for migrations. How do I create a database database1 before running alembic? I've created a database infrastructure using CloudFormation. And when we run the first migration,…
Ganesh Satpute
  • 3,664
  • 6
  • 41
  • 78
1
vote
0 answers

Relational data with modifications/variants

Let's say a supermarket has one table with statistical revenue data by business day. In a second table they want to try out different variations of these data, f.e. less bakery revenue at 1st January, one more public holiday or maybe opening on…
1
vote
1 answer

how to handle database/table changes in PHP?

Ok so now I have this problem i need to add a "balance" column for my users table. I am using the Zend framework and I was hoping to use this one…
David
  • 4,235
  • 12
  • 44
  • 52
1
vote
2 answers

Backward compatibility while adding new fields to Firebase DB

I have the following data structure in my current Firebase real-time DB: public class E { public int x; public int y; public int x; } This database is currently in use by my Android application which is already used by users in production. I…
1
vote
0 answers

Is ArangoDB suitable for this inventory scenario?

I'd like to store a number of product inventories. Each inventory is keyed on a product ID, and each product has arbitrary attributes. I want to take proposed changes to products (which may be several per second) and apply them to their respective…
Isvara
  • 3,403
  • 1
  • 28
  • 42
1
vote
1 answer

Implement draft and publication system in MongoDB

I have a mongodb database with collection documents that are approximately as follows: // book document { _id: $oid, userId: "..." name: "name", description: "description" status: "draft" // ... } // page document { _id:…
Lorenzo Polidori
  • 10,332
  • 10
  • 51
  • 60
1
vote
1 answer

How do organise migration files with multiple database environments in flywaydb?

I am just starting with flywaydb. Let's consider the case of having 3 databases - PROD, TEST, DEMO. On each upgrade (and without flywaydb), there are usually a set of sql files that need to be applied to all databases, and some which are environment…
mmalmeida
  • 1,037
  • 9
  • 27
1
vote
1 answer

How can I update database every X days from server

I wasnt sure where to post this or what I should use for this. I recently learned that Twitch updates every single day and gives 1 random user a golden kappa face. I want to know how it's done, and what they use for to do this. I asked a friend and…
martin j
  • 131
  • 4
  • 13
1
vote
2 answers

Database Versioning - How does branch switching work?

This is a question for those of you developing on a team of devs where all of you have separate databases. You're versioning your database using source control and other tools which will automatically bring dev databases up to date to the latest…
Brandon Montgomery
  • 6,924
  • 3
  • 48
  • 71
1
vote
0 answers

Data revisioning/versioning best practices

I am struggling to define an effective process of revisioning. We have some data spread across multiple tables. We cannot delete or update, we need to create new issues of the same data. I know the solution of a history table containing all…
Midas
  • 564
  • 6
  • 21