mysql - Development and Production Database? -
i'm working php & mysql. i've got head around source control , quite happy whole development (testing) v production v repository thing php part.
my new quandary database. create 1 test environment , 1 production environment? have 1 both environments use, leaving test data sitting there. kind of feel should have two, i'm nervous in terms of making sure production database looks , feels same test one.
any thoughts on way go? and, if think latter, best way keep 2 databases same (apart data, of course...)?
each environment should have separate database. script of database objects (tables, views, procedures, etc) , store scripts in source control. scripts applied first development database, promoted test (qa, uat, etc), production. applying same scripts each database, should same in end.
if have data needs loaded (code tables, lookup values, etc), script data load part of database creation process.
by scripting , keeping in source control, database structure can recreated @ time given build level.
Comments
Post a Comment