Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Migrations for Java (Javou #4 - JavaCE)

1,123 views

Published on

Assim como as Migrations no mundo Ruby On Rails, o mundo Java também possui alternativas para evoluir o banco de dados de uma aplicação. Aprenda como você e sua equipe podem evoluir de maneira iterativa e incremental seu banco de dados – já em produção – durante a criação da sua aplicação.

Serão apresentados os problemas e desafios mais comuns de não utilizar uma ferramenta de migrations para gerenciar a evolução do banco de dados, e os benefícios que esta ferramenta traz em ambiente de desenvolvimento e produção.

Também serão apresentados opções de migrations para Java, suas principais diferenças e a experiência do palestrante ao adotar uma dessas ferramentas em projetos com bancos de dados criados do zero, e também projetos que precisam manter o legado.

Published in: Technology
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Migrations for Java (Javou #4 - JavaCE)

  1. 1. EVOLUINDOSEUBANCODEMANEIRAINCREMENTAL RafaelPonte Javou#4-2015 MigrationsforJava
  2. 2. EM 2005 EU SÓ QUERIA SABER DE FRAMEWORKS
  3. 3. ANALISTADESISTEMAS NA EQUIPE
  4. 4. I ♥HIBERNATE
  5. 5. I ♥HIBERNATE
  6. 6. <?xml  version="1.0"  encoding="UTF-­‐8"?>   <persistence  version="2.0"            xmlns="http://java.sun.com/xml/ns/persistence">             <persistence-­‐unit  name="IssueTracker">       <properties>
                <!-- ... -->         <property  name="hibernate.show_sql"  value="true"  />
       <property  name="hibernate.format_sql"  value="true"  />
       <property  name="hibernate.hbm2ddl.auto"  value="update"  />       </properties>     </persistence-­‐unit>       </persistence>   persistence.xml
  7. 7. @Entity   class  Issue  {    @Id
  private  Long  id;    private  String  descricao;
  …   } Nova Entidade
  8. 8. INFO  [SchemaUpdate  ]  Running  hbm2ddl  schema  update   INFO  [SchemaUpdate  ]  fetching  database  metadata   INFO  [SchemaUpdate  ]  updating  schema   ...   INFO  [TableMetadata]  table  not  found:  issue   INFO  [SchemaUpdate  ]  create  table  issue  (id  bigserial   not  null,  descricao  varchar(255))   ...   INFO  [SchemaUpdate                ]  schema  update  complete   !
  9. 9. I ♥HIBERNATE
  10. 10. @Entity   class  Issue  {    @Id
  private  Long  id;    private  String  descricao;
  private  String  status  =  "A";  
  …   } Entidade ATUALIZADA!
  11. 11. INFO  [SchemaUpdate  ]  Running  hbm2ddl  schema  update   INFO  [SchemaUpdate  ]  fetching  database  metadata   INFO  [SchemaUpdate  ]  updating  schema   ...   INFO  [TableMetadata]  table  found:  issue   INFO  [TableMetadata]  columns:  [id,  descricao]   INFO  [SchemaUpdate  ]  alter  table  issue  add  column   status  varchar(255)   ...
 INFO  [SchemaUpdate  ]  schema  update  complete   !
  12. 12. I ♥HIBERNATE
  13. 13. @Entity   class  Issue  {    @Id
  private  Long  id;
  @Column(length=1000)    private  String  descricao;
  private  String  status  =  "A";  
  …   } Entidade ATUALIZADA! <3
  14. 14. EMPRODUÇÃO java.sql.SQLException:  Data   truncated  for  column  'descricao'  at   row  1  
  15. 15. INFO  [SchemaUpdate  ]  Running  hbm2ddl  schema  update   INFO  [SchemaUpdate  ]  fetching  database  metadata   INFO  [SchemaUpdate  ]  updating  schema   ...   INFO  [TableMetadata]  table  found:  issue   INFO  [TableMetadata]  columns:  [id,  status,  descricao]   INFO  [TableMetadata]  foreign  keys:  []   INFO  [TableMetadata]  indexes:  [issue_pkey]   ...  ???????????  #WTF
 INFO  [SchemaUpdate  ]  schema  update  complete   ! !
  16. 16. I ♥HIBERNATE ϟ
  17. 17. SEMPRE PODE PIORAR
  18. 18. SEMPRE PODE PIORAR MUDEONOME DACOLUNA
  19. 19. SEMPRE PODE PIORAR MUDEOTIPO DACOLUNA
  20. 20. SEMPRE PODE PIORAR ADICIONE UMACOLUNA NOT-NULL
  21. 21. WARNING: We've seen Hibernate users trying to use SchemaUpdate to update the schema of a productiondatabase automatically. This can quickly endindisaster and won't be allowed by your DBA. “ -- Java Persistence with Hibernate
  22. 22. WARNING: We've seen RafaelPontetrying to use SchemaUpdate to update the schema of a productiondatabase automatically. This can quickly endindisaster and won't be allowed by your DBA. “ -- Java Persistence with Hibernate
  23. 23. I ♥HIBERNATE ϟ
  24. 24. DO PROJETO SOMENTE NO INICIO APRENDI:GERAR SCHEMA COM HIBERNATE
  25. 25. CORRIGINDO O BANCO NAMÃO
  26. 26. CORRIGINDO O BANCO NAMÃO Mario Diniz Não tá entrando na tela...
  27. 27. CORRIGINDO O BANCO NAMÃO E o meu banco? Handerson Frota Mario Diniz Não tá entrando na tela...
  28. 28. ALGO ESTAVA ERRADO, EVOLUIR O BANCO ERA CARO
  29. 29. MigrationsforJava EVOLUINDOSEUBANCODEMANEIRAINCREMENTAL
  30. 30. @rponte
  31. 31. Fortaleza - Terra do Sol
  32. 32. Como você evolui sua APP?
  33. 33. Como você evolui seu BANCO?
  34. 34. Como você evolui seu BANCO? gerencia mudanças
  35. 35. PREPARA UM HUGE_SCRIPT.SQL E APLICA MANUALMENTE?
  36. 36. DEIXA NA MÃO DO DBA?
  37. 37. DEIXA NA MÃO DO ARQUITETO? * BDUF (Big Design Up Front) *
  38. 38. CRIA SUA PRÓPRIA FERRAMENTA, CERTO? NÓS ♥ TECNOLOGIACASEIRA
  39. 39. OU GERA COM HIBERNATE?
  40. 40. Não importa qual solução você utilize...
  41. 41. CADA SOLUÇÃO TEM VANTAGENS EDESVANTAGENS
  42. 42. CADA SOLUÇÃO TEM SEUS PRÓS ECONTRAS
  43. 43. A COMUNIDADE RUBYONRAILS APRENDEU DESDE O COMEÇO
  44. 44. SIMPLESEEFICAZ: MIGRATIONS
  45. 45. A COMUNIDADE JAVA PARECE QUE NÃO APRENDEU AINDA COMO SE FAZ
  46. 46. Java ferramentasparatodososgostos
  47. 47. TODASSEGUEM O MESMO CONCEITO
  48. 48. PASSOS4 RESUMINDO EM
  49. 49. CRIE O SCRIPT COM A MUDANÇA1 CREATE  TABLE  'blog'  (        'id'  INT(10)  UNSIGNED  NOT  NULL  AUTO_INCREMENT,        'descricao'  VARCHAR(255)  NOT  NULL        PRIMARY  KEY  ('id')   ) script.sql
  50. 50. CRIE O SCRIPT COM A MUDANÇA1 CREATE  TABLE  'blog'  (        'id'  INT(10)  UNSIGNED  NOT  NULL  AUTO_INCREMENT,        'descricao'  VARCHAR(255)  NOT  NULL        PRIMARY  KEY  ('id')   ) create_table_blog.sql
  51. 51. CRIE O SCRIPT COM A MUDANÇA1 CREATE  TABLE  'blog'  (        'id'  INT(10)  UNSIGNED  NOT  NULL  AUTO_INCREMENT,        'descricao'  VARCHAR(255)  NOT  NULL        PRIMARY  KEY  ('id')   ) 1_create_table_blog.sql
  52. 52. CRIE O SCRIPT COM A MUDANÇA1 CREATE  TABLE  'blog'  (        'id'  INT(10)  UNSIGNED  NOT  NULL  AUTO_INCREMENT,        'descricao'  VARCHAR(255)  NOT  NULL        PRIMARY  KEY  ('id')   ) <ID>_<DESCRIPTION>.sql
  53. 53. APLICA O SCRIPT NO BANCO2 [rponte]  ~/myblog/scripts   $  migrate  up
  54. 54. APLICA O SCRIPT NO BANCO2 [rponte]  ~/myblog/scripts   $  migrate  up  -­‐env=PRODUCTION -­‐env=HOMOLOG -­‐env=DEV -­‐env=TEST
  55. 55. VERSIONA A MUDANÇA NO BANCO3mysql>  select  *  from  DB_VERSION; +-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  ID  |  DESCRIPTION                  |   +-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  1    |  create  table  blog      |   +-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+
  56. 56. APLICA SCRIPTS AINDA NÃO APLICADOS4[rponte]  ~/myblog/scripts   $  migrate  up mysql>  select  *  from  DB_VERSION;   +-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  ID  |  DESCRIPTION                  |   +-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+   |  1    |  create  table  blog      |   |  2    |  create  table  author  |   |  3    |  create  table  post      |   +-­‐-­‐-­‐-­‐+-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐+
  57. 57. CRIA O SCRIPT1 APLICA SCRIPT2 VERSIONA O BANCO3 APLICA NOVOS SCRIPTS4
  58. 58. Java ferramentasparatodososgostos
  59. 59. Java ferramentasparatodososgostos liquibase mybatisflyway
  60. 60. FLYWAY LIQUIBASE MYBATIS MIGRATIONS
  61. 61. FLYWAY LIQUIBASE MYBATIS MIGRATIONS
  62. 62. Flyway
  63. 63. Flyway > Plain SQL migrations
  64. 64. Flyway > Plain SQL migrations > Java migrations
  65. 65. Flyway > Plain SQL migrations > Java migrations > Convention over Configuration
  66. 66. Flyway > Plain SQL migrations > Java migrations > Convention over Configuration > SQL Parser
  67. 67. Flyway > Plain SQL migrations > Java migrations > Convention over Configuration > SQL Parser > Java API - Ant - Maven - Gradle
  68. 68. FLYWAY LIQUIBASE MYBATIS MIGRATIONS
  69. 69. Liquibase
  70. 70. Liquibase > XML migrations
  71. 71. Liquibase > XML migrations > Plain SQL migrations
  72. 72. Liquibase > XML migrations > Plain SQL migrations > Multiple Databases
  73. 73. Liquibase > XML migrations > Plain SQL migrations > Multiple Databases > Rollback support
  74. 74. Liquibase > XML migrations > Plain SQL migrations > Multiple Databases > Rollback support > Generation of SQL scripts for DBA
  75. 75. FLYWAY LIQUIBASE MYBATIS MIGRATIONS
  76. 76. MyBatisSchemaMigrations
  77. 77. MyBatisSchemaMigrations > Plain SQL migrations
  78. 78. MyBatisSchemaMigrations > Plain SQL migrations > Maven
  79. 79. MyBatisSchemaMigrations > Plain SQL migrations > Rollback support > Maven
  80. 80. MyBatisSchemaMigrations > Plain SQL migrations > Generation of SQL scripts for DBA > Rollback support > Maven
  81. 81. APESARDE TANTAS OPÇÕESHOJE EMDIA
  82. 82. APESARDE TANTAS OPÇÕESHOJE EMDIA EM2009 ERADIFERENTE
  83. 83. APESARDE TANTAS OPÇÕESHOJE EMDIA ADOTAMOSO MYBATIS MIGRATIONS
  84. 84. WINDOWS, LINUXE MACOSX ADOTAMOSO MYBATIS MIGRATIONS
  85. 85. PODEMOS FACILITAR E FOI O QUE FIZEMOS ANT SCRIPT
  86. 86. Mybatis-Migrations-Anttasks github.com/rponte/mybatis-migrations-anttasks
  87. 87. PODEMOS FACILITAR E FOI O QUE MARCELO FEZ GRADLE PLUGIN
  88. 88. PODEMOS FACILITAR E FOI O QUE MARCELO FEZ GRADLE PLUGIN Ant é tão OLD!
  89. 89. Gradle-Migrations-Plugin github.com/marceloemanoel/gradle-migrations-plugin
  90. 90. MAVEN MyBatisMigrations
  91. 91. MAVEN ANT MyBatisMigrations
  92. 92. MAVEN ANT GRADLE MyBatisMigrations
  93. 93. FLYWAY LIQUIBASE MYBATIS MIGRATIONS
  94. 94. FLYWAY LIQUIBASE MYBATIS MIGRATIONS QUAL ESCOLHER?
  95. 95. MIGRATIONS
  96. 96. MIGRATIONS = EVOLUÇÃO SUSTENTÁVEL DOBANCO
  97. 97. MIGRATIONS MELHOR PROCESSO+ = EVOLUÇÃO SUSTENTÁVEL DOBANCO
  98. 98. MELHOREO PROCESSO
  99. 99. EQUIPE RESPONSÁVELPELO BANCO
  100. 100. COLOQUEAS MIGRATIONSNO CONTROLEDEVERSÃO
  101. 101. -BANCODEDADOSCOMPARTILHADO- NAOUSEEM DESENVOLVIMENTO
  102. 102. -BANCODEDADOSCOMPARTILHADO- NAOUSEEM DESENVOLVIMENTO
  103. 103. Banco de Dados Rafael Mario Handerson ......
  104. 104. Rafael Mario Handerson ... Banco Banco Banco ... ... ...
  105. 105. ! ! Banco de Dados Rafael Mario Handerson ... Schema Schema Schema ... ... ...
  106. 106. AUTOMATIZEOMÁXIMO QUEPUDER
  107. 107. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43
  108. 108. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v48 deployfrequente
  109. 109. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v48 Q&A v44 Demo v45 deployfrequente deploycontrolado
  110. 110. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v48 Q&A v44 Demo v45 Produção v43 deployfrequente deploycontrolado deployMUITOcontrolado
  111. 111. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v48 Q&A v44 Demo v45 Produção v43 deployfrequente deploycontrolado deployMUITOcontrolado
  112. 112. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v49 Q&A v44 Demo v45 Produção v43 deployfrequente deploycontrolado deployMUITOcontrolado
  113. 113. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v49 Q&A v49 Demo v45 Produção v43 deployfrequente deploycontrolado deployMUITOcontrolado
  114. 114. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v49 Q&A v49 Demo v49 Produção v43 deployfrequente deploycontrolado deployMUITOcontrolado
  115. 115. Rafael v48 Rafael v48 Rafael v48 Mario v49 Rafael v48 Handerson v43 Integration v49 Q&A v49 Demo v49 Produção v49 deployfrequente deploycontrolado deployMUITOcontrolado
  116. 116. NÃOMODIFIQUE MIGRATIONSQUEFORAM PARAPRODUÇÃO
  117. 117. GRANDESMUDANÇAS PEQUENASMIGRATIONS
  118. 118. MIGRATIONS MELHOR PROCESSO+ = EVOLUÇÃO SUSTENTÁVEL DOBANCO
  119. 119. SEMPRE PODE PIORAR
  120. 120. APP BANC
  121. 121. APP BANC APPS que você NÃO conhece APPS que você conhece APPS que você conhece APPS que você NÃO conhece Data importers Data exporters Outros bancos Frameworks de persistência Código de teste APPS que você conhece APPS que você conhece APPS que você NÃO conhece Outros bancos Data importers Data exporters
  122. 122. APP BANC APPS que você NÃO conhece APPS que você conhece APPS que você conhece APPS que você NÃO conhece Data importers Data exporters Outros bancos Frameworks de persistência Código de teste APPS que você conhece APPS que você conhece APPS que você NÃO conhece Outros bancos Data importers Data exporters “Deusnocéu,eBancode dadosnaterra.”
  123. 123. EVOLUIR O BANCO NESSE CENÁRIO É CARO
  124. 124. Original Transição Resultado
  125. 125. Original Transição Resultado modifica o banco {
  126. 126. Original Transição Resultado modifica o banco período de transição (antigo e novo) { {
  127. 127. Original Transição Resultado modifica o banco período de transição (antigo e novo) finaliza a modificação { { {
  128. 128. Original Transição Resultado modifica o banco período de transição (antigo e novo) finaliza a modificação { { { Aplica as migrations, migra os dados, escreve código de compatibilidade
  129. 129. Original Transição Resultado modifica o banco período de transição (antigo e novo) finaliza a modificação { { { Aplica as migrations, migra os dados, escreve código de compatibilidade Remove schema antigo e código de compatibilidade
  130. 130. CONCLUINDO
  131. 131. EVOLUIR O BANCO É MAIS DIFÍCIL DO QUE A APLICAÇAO
  132. 132. TRABALHE JUNTAMENTE COM O DBA
  133. 133. ESTUDE, EXPERIMENTE E ESCOLHA UMA MIGRATIONSTOOL
  134. 134. Obrigado!
  135. 135. One more thing…
  136. 136. http:// promo.triadworks.com.br
  137. 137. One more thing…
  138. 138. Tenho um amigo que tem um sonho…
  139. 139. RommelCosta
  140. 140. Rafael Ponte rponte@gmail.com

×