About developers and database permissions configuration specification database upgrade process

In the new version of the project publishing process, it exposed some problems of rights management database and the database upgrade process specifications of the problem.
After this complete release the real version, actually found some script is not executed, causing the user to upgrade finished there have been some Bug, had a very bad influence.
For this purpose a special meeting to discuss the project team this question, the specific reasons as follows:
1. The developer now has a test write access to the database, leading everyone can execute scripts in the test database, so there is a developer in a test environment
Direct execution of the script, but there is no registration, no problems are found in the results of the test, but the real environmental release Shique missed release some of the script.
2. Some database stored procedure is not in accordance with the provisions of VSTS update directly to the specified directory, but carried out directly in the development version of the database, or perform a test in the database, so there is no benchmark to determine the date of publication.
To avoid this situation occurring in the future, it is recommended to perform in accordance with the following provisions:
1. recover developers write access to the test database, database developers to test only read permissions, only read and write permissions to develop the database.
Write access to the test version of the database, you can only specify a release test version of employees have.
2. For each change of the database to be written in the script, and registered to the specified file, perform together when released.
3. For updates and new stored procedure, you must update the stored procedure to update VSTS in the specified directory, the same if it is a new stored procedure
VSTS is asked to join in the specified directory.
4. release beta version of the truth and all the database scripts are required to get from the specified file, the stored procedure is executed after obtaining from the specified directory.

Reproduced in: https: //www.cnblogs.com/kevinGao/archive/2012/07/20/2605584.html

Guess you like

Origin blog.csdn.net/weixin_34007291/article/details/93052900