database-versioning

Is it possible to use MS VS Database Project as a complete solution for database versioning?

会有一股神秘感。 提交于 2019-12-03 21:09:56
In our project we have several production databases and many devs. Each production database represents some "sub-project/localization version". We use SQL Server 2008. So, I need to develop database versioning strategy using MS Visual Studio Database Project. I have read a lot of articles about database versioning and database projects, but I still have a lot of questions: How developers should implement theirs changes to db project? (Best practice) How to generate the 100% workable "latest version" deploy script without human intervention (skipping some objects, rewriting some changes, etc)?

Combine Hibernate's automatic schema creation and database versioning

不问归期 提交于 2019-12-03 17:52:43
问题 I have an application where Hibernate creates all my table schemata whenever the application is run on a machine for the first time. This works nicely. Now I was however wondering if Hibernate has some sort of mechanism to keep the database under version control, i.e. will Hibernate know how to migrate one schema to another when I run a different version of my application and Hibernate finds a different database schema from an older version present? I somehow think that this should be

How do you manage database revisions on a medium sized project with branches? [closed]

喜欢而已 提交于 2019-12-03 09:25:00
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 months ago . At work we have 4 people working together on a few different projects. For each project we each have a local copy we work on and then there is a development, staging, and live deployment, along with any branches we have (we use subversion). Our database is MySQL. So my

How to implement Auditing/versioning of Table Modifications on PostgreSQL

穿精又带淫゛_ 提交于 2019-12-03 08:26:27
We're implementing a New system using Java/Spring/Hibernate on PostgreSQL. This system needs to make a copy of Every Record as soon as a modification/deletion is done on the record(s) in the Tables(s). Later, the Audit Table(s) will be queried by Reports to display the data to the users. I was planning to implement this auditing/versioning feature by having a trigger on the table(s) which would make a copy of the modified row(deleted row) "TO" a TABLE called ENTITY_VERSIONS which would have about 20 columns called col1, col2, col3, col4, etc which would store the columns from the above Table(s

Ways to implement data versioning in PostreSQL

北城以北 提交于 2019-12-03 06:02:33
问题 Can you share your thoughts how would you implement data versioning in PostgreSQL. (I've asked similar question regarding Cassandra and MongoDB. If you have any thoughts which db is better for that please share) Suppose that I need to version records in a simple address book. Address book records are stored in one table without relations for simplicity. I expect that the history: will be used infrequently will be used all at once to present it in a "time machine" fashion there won't be more

Ways to implement data versioning in PostreSQL

蓝咒 提交于 2019-12-02 19:29:51
Can you share your thoughts how would you implement data versioning in PostgreSQL. (I've asked similar question regarding Cassandra and MongoDB . If you have any thoughts which db is better for that please share) Suppose that I need to version records in a simple address book. Address book records are stored in one table without relations for simplicity. I expect that the history: will be used infrequently will be used all at once to present it in a "time machine" fashion there won't be more versions than few hundred to a single record. history won't expire. I'm considering the following

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

心已入冬 提交于 2019-12-01 06:41:04
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 current stock. When I insert ou edit a shopList, I want the stock of those products in the shopList to be updated to keep the stock consistant. To do that, I open a transaction, insert/update the shopList, update the stocks for each product (apply delta) and then commit the transaction. No big deal up to now. However, other user may have updated one or

Magento: How can I migrate configuration changes from development to production environment?

青春壹個敷衍的年華 提交于 2019-11-30 15:16:39
问题 We are actively developing modules and when we push the changes to our production site, there are usually several configuration changes we need to make. Would be nice to automate this...thoughts? 回答1: Not sure if it is still actual, but if you mean changes to system -> config, then it is much more better to use such config.xml nodes instead of writing database upgrade. Magneto processes core_config_data table into global XML structure, so you may just change XML structure without using db

Magento: How can I migrate configuration changes from development to production environment?

拥有回忆 提交于 2019-11-30 13:53:55
We are actively developing modules and when we push the changes to our production site, there are usually several configuration changes we need to make. Would be nice to automate this...thoughts? Not sure if it is still actual, but if you mean changes to system -> config, then it is much more better to use such config.xml nodes instead of writing database upgrade. Magneto processes core_config_data table into global XML structure, so you may just change XML structure without using db table for making changes to system configuration. Here is small example: <config> <stores> <french> <design>

Starting with versioning mysql schemata without overkill. Good solutions?

匆匆过客 提交于 2019-11-30 04:18:15
I've arrived at the point where I realise that I must start versioning my database schemata and changes. I consequently read the existing posts on SO about that topic but I'm not sure how to proceed. I'm basically a one man company and not long ago I didn't even use version control for my code. I'm on a windows environment, using Aptana (IDE) and SVN (with Tortoise). I work on PHP/mysql projects. What's a efficient and sufficient (no overkill) way to version my database schemata? I do have a freelancer or two in some projects but I don't expect a lot of branching and merging going on. So