简体   繁体   English

在云端持续部署

[英]Continuous Deployment in Cloud

I am assinged for the task of Continuous deployment from development server to production server. 我对从开发服务器到生产服务器的连续部署的任务感到震惊。

In my development server all the database objects will be created under the 'DBO' Schema. 在我的开发服务器中,所有数据库对象都将在“ DBO”模式下创建。 But in Production server based on every Tenants company list differenet SCHEMAS will be there. 但是在基于每个租户公司列表的生产服务器中,将存在不同的SCHEMAS。

for Eg in my development server if a tablename is created like 如果在开发服务器上创建表名,例如

   dbo.ABC
   dbo.XYZ

And while i creating a tenant(Omkar---db) (Sarkur,Mathur--- schemas), the database objects will be like 当我创建一个租户(Omkar --- db)(Sarkur,Mathur ---模式)时,数据库对象将像

Sarkur.ABC, sarkur.XYZ Mathur.ABC, Mathur.XYZ Sarkur.ABC,sarkur.XYZ Mathur.ABC,Mathur.XYZ

Now, i have to compare these two databases to check whether any changes in structure of the database objects, addition / deletion of database objects. 现在,我必须比较这两个数据库,以检查数据库对象的结构是否有任何更改,数据库对象的添加/删除。 If so that changes has tobe synchronized in the production database. 如果是这样,则必须在生产数据库中同步更改。

If anyone know that how to compare these two different schemas object, pls let me know.. 如果有人知道如何比较这两个不同的架构对象,请告诉我。

1 option that I know is looking suitable 我知道的1个选项看起来很合适

Flyway : 飞路:

  1. It is Easy to setup, simple to master. 它易于设置,易于掌握。 Flyway let's you regain control of your database migrations with pleasure and plain sql. Flyway让您以愉悦的方式和简单的sql重新获得对数据库迁移的控制。

  2. Solves only one problem and solves it well. 仅解决一个问题即可解决。 Flyway migrates your database, so you don't have to worry about it anymore. Flyway会迁移数据库,因此您不必再为它担心。

  3. Made for continuous delivery. 专为连续交付而设计。 Let Flyway migrate your database on application startup. 让Flyway在应用程序启动时迁移数据库。 Releases have never been this easy. 发布从未如此简单。

Big Plus It's Open Source framework! 大加它是开源框架!

http://flywaydb.org/ http://flywaydb.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM