SlideShare uma empresa Scribd logo
1 de 29
Baixar para ler offline
Migrations for Java
                       EVOLUINDO SEU BANCO DE MANEIRA INCREMENTAL




Monday, May 14, 2012
Como você evolui sua
                                    APP?
Monday, May 14, 2012
Como você evolui seu
                                BANCO?
Monday, May 14, 2012
gerencia mudanças
                       Como você evolui seu
                                 BANCO?
Monday, May 14, 2012
PREPARA UM HUGE_SCRIPT.SQL E
                          APLICA MANUALMENTE?



Monday, May 14, 2012
DEIXA NA MÃO DO DBA?




Monday, May 14, 2012
DEIXA NA MÃO DO
                       *
                         ARQUITETO?

                                         * BDUF (Big Design Up Front)

Monday, May 14, 2012
NÓS
                                        ♥
                                            TECN
                                                OLO
                                                   GIA
                                                       CASE
                         CRIA SUA PRÓPRIA                   IRA



                       FERRAMENTA, CERTO?


Monday, May 14, 2012
Não importa qual solução
     você utilize...



Monday, May 14, 2012
CADA SOLUÇÃO
                          TEM VANTAGENS
                       E DESVANTAGENS


Monday, May 14, 2012
CADA SOLUÇÃO
                        TEM SEUS PRÓS
                       E CONTRAS


Monday, May 14, 2012
A COMUNIDADE RUBYONRAILS APRENDEU DESDE O COMEÇO




Monday, May 14, 2012
SIMPLES E EFICAZ:

     MIGRATIONS
Monday, May 14, 2012
A COMUNIDADE JAVA
                       PARECE QUE NÃO APRENDEU
                       AINDA COMO SE FAZ


Monday, May 14, 2012
Java              ferramentas para todos os gostos




Monday, May 14, 2012
Java              ferramentas para todos os gostos




                           mybatis


Monday, May 14, 2012
MyBatis Schema Migrations




Monday, May 14, 2012
INSTALAÇÃO É SIMPLES

Monday, May 14, 2012
instalando MyBatis Migrations | download & unzip

   [rponte]	
  ~/Development/tools
   $	
  unzip	
  mybatis-­‐3.0.6-­‐migrations.zip	
  	
  


   [rponte]	
  ~/Development/tools
   $	
  ls	
  -­‐l	
  mybatis-­‐migrations-­‐3.0.6
   total	
  536
   -­‐rw-­‐r-­‐-­‐r-­‐-­‐@	
  1	
  rponte	
  	
  staff	
  	
  	
  11560	
  Oct	
  	
  9	
  	
  2011	
  LICENSE
   -­‐rw-­‐r-­‐-­‐r-­‐-­‐@	
  1	
  rponte	
  	
  staff	
  	
  	
  	
  2051	
  Oct	
  	
  9	
  	
  2011	
  MIGRATIONS-­‐README
   -­‐rw-­‐r-­‐-­‐r-­‐-­‐@	
  1	
  rponte	
  	
  staff	
  	
  253003	
  Oct	
  	
  9	
  	
  2011	
  MyBatis-­‐3-­‐Migrations.pdf
   -­‐rw-­‐r-­‐-­‐r-­‐-­‐@	
  1	
  rponte	
  	
  staff	
  	
  	
  	
  2519	
  Oct	
  	
  9	
  	
  2011	
  NOTICE
   drwxrwxrwx	
  	
  5	
  rponte	
  	
  staff	
  	
  	
  	
  	
  170	
  May	
  11	
  02:45	
  bin
   drwxrwxrwx	
  	
  3	
  rponte	
  	
  staff	
  	
  	
  	
  	
  102	
  Oct	
  	
  9	
  	
  2011	
  lib




Monday, May 14, 2012
instalando MyBatis Migrations | environment

   [rponte]	
  ~/Development/tools
   $	
  export	
  PATH=$MIGRATIONS_HOME/bin:$PATH	
  	
  


   [rponte]	
  ~/Development/tools
   $	
  migrate	
  -­‐-­‐help
   Commands:
   	
  	
  init	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Creates	
  (if	
  necessary)	
  and	
  initializes	
  a	
  migration	
  path.
   	
  	
  bootstrap	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Runs	
  the	
  bootstrap	
  SQL	
  script	
  (see	
  scripts/bootstrap.sql	
  for	
  more).
   	
  	
  new	
  <description>	
  	
  Creates	
  a	
  new	
  migration	
  with	
  the	
  provided	
  description.
   	
  	
  up	
  [n]	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Run	
  unapplied	
  migrations,	
  ALL	
  by	
  default,	
  or	
  'n'	
  specified.
   	
  	
  down	
  [n]	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Undoes	
  migrations	
  applied	
  to	
  the	
  database.	
  ONE	
  by	
  default	
  or	
  'n'	
  specified.
   	
  	
  version	
  <version>	
  	
  Migrates	
  the	
  database	
  up	
  or	
  down	
  to	
  the	
  specified	
  version.
   	
  	
  pending	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Force	
  executes	
  pending	
  migrations	
  out	
  of	
  order	
  (not	
  recommended).
   	
  	
  status	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  Prints	
  the	
  changelog	
  from	
  the	
  database	
  if	
  the	
  changelog	
  table	
  exists.
   	
  	
  script	
  <v1>	
  <v2>	
  	
  	
  Generates	
  a	
  delta	
  migration	
  script	
  from	
  version	
  v1	
  to	
  v2	
  (undo	
  if	
  v1	
  >	
  v2).




Monday, May 14, 2012
instalando MyBatis Migrations | project
   [rponte]	
  ~/Development/blog_project/db
   $	
  migrate	
  init




Monday, May 14, 2012
MyBatis Migrations
                    em ação...
Monday, May 14, 2012
PODEMOS FACILITAR
                          E FOI O QUE FIZEMOS
                       ANT SCRIPT
Monday, May 14, 2012
Monday, May 14, 2012
Mybatis-Migrations-Anttasks   github.com/triadworks/labs




Monday, May 14, 2012
Mybatis-Migrations-Anttasks   github.com/triadworks/labs




Monday, May 14, 2012
Monday, May 14, 2012
MyBatis Migrations
                   Ant-tasks em
                      ação...
Monday, May 14, 2012
Rafael Ponte
                       rponte@triadworks.com.br




Monday, May 14, 2012

Mais conteúdo relacionado

Semelhante a Migrations for Java

Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!
Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!
Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!
Nitin Ramrakhyani
 
NERCOMP LMS UnConference UnKeynote
NERCOMP LMS UnConference UnKeynoteNERCOMP LMS UnConference UnKeynote
NERCOMP LMS UnConference UnKeynote
Michael Feldstein
 
PFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP AppsPFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP Apps
Pablo Godel
 
StartupWeekend slide deck
StartupWeekend slide deckStartupWeekend slide deck
StartupWeekend slide deck
jdaquino
 
Going independent - making it as a freelance web professional - TriNUD RDU Co...
Going independent - making it as a freelance web professional - TriNUD RDU Co...Going independent - making it as a freelance web professional - TriNUD RDU Co...
Going independent - making it as a freelance web professional - TriNUD RDU Co...
Michael Kimsal
 
Multilingual solutions florian loretan
Multilingual solutions florian loretanMultilingual solutions florian loretan
Multilingual solutions florian loretan
drupalconf
 
The enterprise mobility revolution
The enterprise mobility revolutionThe enterprise mobility revolution
The enterprise mobility revolution
James Robertson
 

Semelhante a Migrations for Java (20)

Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!
Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!
Unleashing the power of Scrum and Kanban together - Best of Both Worlds!!
 
Games for the Masses (QCon London 2012)
Games for the Masses (QCon London 2012)Games for the Masses (QCon London 2012)
Games for the Masses (QCon London 2012)
 
NERCOMP LMS UnConference UnKeynote
NERCOMP LMS UnConference UnKeynoteNERCOMP LMS UnConference UnKeynote
NERCOMP LMS UnConference UnKeynote
 
Jenkins Evolutions
Jenkins EvolutionsJenkins Evolutions
Jenkins Evolutions
 
PFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP AppsPFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP Apps
 
Welcome to Rails Girls Buenos Aires
Welcome to Rails Girls Buenos AiresWelcome to Rails Girls Buenos Aires
Welcome to Rails Girls Buenos Aires
 
Como escalar aplicações PHP
Como escalar aplicações PHPComo escalar aplicações PHP
Como escalar aplicações PHP
 
Agile Business 2012 @ Agile Croatia May 14, 2012
Agile Business 2012 @ Agile Croatia May 14, 2012Agile Business 2012 @ Agile Croatia May 14, 2012
Agile Business 2012 @ Agile Croatia May 14, 2012
 
Agile Business 2012@Agile Croatia May 2012
Agile Business 2012@Agile Croatia May 2012Agile Business 2012@Agile Croatia May 2012
Agile Business 2012@Agile Croatia May 2012
 
鱼与熊掌 - 软件质量和交付速度
鱼与熊掌 - 软件质量和交付速度鱼与熊掌 - 软件质量和交付速度
鱼与熊掌 - 软件质量和交付速度
 
HTML5 Italy: Back end ecosystems for your applications - Cesare Rocchi + Clau...
HTML5 Italy: Back end ecosystems for your applications - Cesare Rocchi + Clau...HTML5 Italy: Back end ecosystems for your applications - Cesare Rocchi + Clau...
HTML5 Italy: Back end ecosystems for your applications - Cesare Rocchi + Clau...
 
Facebook Timeline for Church Fan Pages: An Overview
Facebook Timeline for Church Fan Pages: An OverviewFacebook Timeline for Church Fan Pages: An Overview
Facebook Timeline for Church Fan Pages: An Overview
 
StartupWeekend slide deck
StartupWeekend slide deckStartupWeekend slide deck
StartupWeekend slide deck
 
Going independent - making it as a freelance web professional - TriNUD RDU Co...
Going independent - making it as a freelance web professional - TriNUD RDU Co...Going independent - making it as a freelance web professional - TriNUD RDU Co...
Going independent - making it as a freelance web professional - TriNUD RDU Co...
 
Show an Open Source Project Some Love and Start Using Travis-CI
Show an Open Source Project Some Love and Start Using Travis-CIShow an Open Source Project Some Love and Start Using Travis-CI
Show an Open Source Project Some Love and Start Using Travis-CI
 
Multilingual solutions florian loretan
Multilingual solutions florian loretanMultilingual solutions florian loretan
Multilingual solutions florian loretan
 
The enterprise mobility revolution
The enterprise mobility revolutionThe enterprise mobility revolution
The enterprise mobility revolution
 
Ux in dm d4=r1
Ux in dm d4=r1Ux in dm d4=r1
Ux in dm d4=r1
 
Resume 2016
Resume 2016Resume 2016
Resume 2016
 
Building an app across 11 arabic countries
Building an app across 11 arabic countriesBuilding an app across 11 arabic countries
Building an app across 11 arabic countries
 

Mais de Rafael Ponte

Mais de Rafael Ponte (20)

TechDay: 10 Features do Oracle que voce nao conhecia - CONNECT BY CLAUSE
TechDay: 10 Features do Oracle que voce nao conhecia - CONNECT BY CLAUSETechDay: 10 Features do Oracle que voce nao conhecia - CONNECT BY CLAUSE
TechDay: 10 Features do Oracle que voce nao conhecia - CONNECT BY CLAUSE
 
TechDay Retrospectiva 2018
TechDay Retrospectiva 2018TechDay Retrospectiva 2018
TechDay Retrospectiva 2018
 
Arquitetura Java - Escalando além do Hype
Arquitetura Java - Escalando além do HypeArquitetura Java - Escalando além do Hype
Arquitetura Java - Escalando além do Hype
 
Como treinar seu estagiario
Como treinar seu estagiarioComo treinar seu estagiario
Como treinar seu estagiario
 
Lidando com o Caos: Testando Código PLSQL em um Projeto Critico
Lidando com o Caos: Testando Código PLSQL em um Projeto CriticoLidando com o Caos: Testando Código PLSQL em um Projeto Critico
Lidando com o Caos: Testando Código PLSQL em um Projeto Critico
 
Como Apresentar Codigo em Slides - Javou #7 - 2016
Como Apresentar Codigo em Slides - Javou #7 - 2016Como Apresentar Codigo em Slides - Javou #7 - 2016
Como Apresentar Codigo em Slides - Javou #7 - 2016
 
Importancia dos Testes Automatizados no dia a dia FIC-Estacio 2015
Importancia dos Testes Automatizados no dia a dia FIC-Estacio 2015Importancia dos Testes Automatizados no dia a dia FIC-Estacio 2015
Importancia dos Testes Automatizados no dia a dia FIC-Estacio 2015
 
Hibernate efetivo (IA-2014 / Disturbing the Mind)
Hibernate efetivo (IA-2014 / Disturbing the Mind)Hibernate efetivo (IA-2014 / Disturbing the Mind)
Hibernate efetivo (IA-2014 / Disturbing the Mind)
 
Hibernate efetivo (COALTI-2014 / ALJUG)
Hibernate efetivo (COALTI-2014 / ALJUG)Hibernate efetivo (COALTI-2014 / ALJUG)
Hibernate efetivo (COALTI-2014 / ALJUG)
 
Migrations for Java (QCONSP2013)
Migrations for Java (QCONSP2013)Migrations for Java (QCONSP2013)
Migrations for Java (QCONSP2013)
 
Importancia dos Testes Automatizados no dia a dia (Don't Panic)
Importancia dos Testes Automatizados no dia a dia (Don't Panic)Importancia dos Testes Automatizados no dia a dia (Don't Panic)
Importancia dos Testes Automatizados no dia a dia (Don't Panic)
 
Importância dos testes automatizados no dia a dia
Importância dos testes automatizados no dia a diaImportância dos testes automatizados no dia a dia
Importância dos testes automatizados no dia a dia
 
Hibernate Efetivo (QCONSP-2012)
Hibernate Efetivo (QCONSP-2012)Hibernate Efetivo (QCONSP-2012)
Hibernate Efetivo (QCONSP-2012)
 
Os 10 maus habitos dos desenvolvedores jsf (JustJava e CCT)
Os 10 maus habitos dos desenvolvedores jsf (JustJava e CCT)Os 10 maus habitos dos desenvolvedores jsf (JustJava e CCT)
Os 10 maus habitos dos desenvolvedores jsf (JustJava e CCT)
 
Importância dos testes automatizadoss
Importância dos testes automatizadossImportância dos testes automatizadoss
Importância dos testes automatizadoss
 
Greenbar - Testes automatizados na sua empresa
Greenbar - Testes automatizados na sua empresaGreenbar - Testes automatizados na sua empresa
Greenbar - Testes automatizados na sua empresa
 
Desafios de um desenvolvedor JSF
Desafios de um desenvolvedor JSFDesafios de um desenvolvedor JSF
Desafios de um desenvolvedor JSF
 
Curso de Java server faces (JSF)
Curso de Java server faces (JSF)Curso de Java server faces (JSF)
Curso de Java server faces (JSF)
 
Os 10 maus hábitos dos desenvolvedores JSF
Os 10 maus hábitos dos desenvolvedores JSFOs 10 maus hábitos dos desenvolvedores JSF
Os 10 maus hábitos dos desenvolvedores JSF
 
Boas Práticas com JavaServer Faces (Jsf)
Boas Práticas com JavaServer Faces (Jsf)Boas Práticas com JavaServer Faces (Jsf)
Boas Práticas com JavaServer Faces (Jsf)
 

Último

Último (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Migrations for Java

  • 1. Migrations for Java EVOLUINDO SEU BANCO DE MANEIRA INCREMENTAL Monday, May 14, 2012
  • 2. Como você evolui sua APP? Monday, May 14, 2012
  • 3. Como você evolui seu BANCO? Monday, May 14, 2012
  • 4. gerencia mudanças Como você evolui seu BANCO? Monday, May 14, 2012
  • 5. PREPARA UM HUGE_SCRIPT.SQL E APLICA MANUALMENTE? Monday, May 14, 2012
  • 6. DEIXA NA MÃO DO DBA? Monday, May 14, 2012
  • 7. DEIXA NA MÃO DO * ARQUITETO? * BDUF (Big Design Up Front) Monday, May 14, 2012
  • 8. NÓS ♥ TECN OLO GIA CASE CRIA SUA PRÓPRIA IRA FERRAMENTA, CERTO? Monday, May 14, 2012
  • 9. Não importa qual solução você utilize... Monday, May 14, 2012
  • 10. CADA SOLUÇÃO TEM VANTAGENS E DESVANTAGENS Monday, May 14, 2012
  • 11. CADA SOLUÇÃO TEM SEUS PRÓS E CONTRAS Monday, May 14, 2012
  • 12. A COMUNIDADE RUBYONRAILS APRENDEU DESDE O COMEÇO Monday, May 14, 2012
  • 13. SIMPLES E EFICAZ: MIGRATIONS Monday, May 14, 2012
  • 14. A COMUNIDADE JAVA PARECE QUE NÃO APRENDEU AINDA COMO SE FAZ Monday, May 14, 2012
  • 15. Java ferramentas para todos os gostos Monday, May 14, 2012
  • 16. Java ferramentas para todos os gostos mybatis Monday, May 14, 2012
  • 19. instalando MyBatis Migrations | download & unzip [rponte]  ~/Development/tools $  unzip  mybatis-­‐3.0.6-­‐migrations.zip     [rponte]  ~/Development/tools $  ls  -­‐l  mybatis-­‐migrations-­‐3.0.6 total  536 -­‐rw-­‐r-­‐-­‐r-­‐-­‐@  1  rponte    staff      11560  Oct    9    2011  LICENSE -­‐rw-­‐r-­‐-­‐r-­‐-­‐@  1  rponte    staff        2051  Oct    9    2011  MIGRATIONS-­‐README -­‐rw-­‐r-­‐-­‐r-­‐-­‐@  1  rponte    staff    253003  Oct    9    2011  MyBatis-­‐3-­‐Migrations.pdf -­‐rw-­‐r-­‐-­‐r-­‐-­‐@  1  rponte    staff        2519  Oct    9    2011  NOTICE drwxrwxrwx    5  rponte    staff          170  May  11  02:45  bin drwxrwxrwx    3  rponte    staff          102  Oct    9    2011  lib Monday, May 14, 2012
  • 20. instalando MyBatis Migrations | environment [rponte]  ~/Development/tools $  export  PATH=$MIGRATIONS_HOME/bin:$PATH     [rponte]  ~/Development/tools $  migrate  -­‐-­‐help Commands:    init                              Creates  (if  necessary)  and  initializes  a  migration  path.    bootstrap                    Runs  the  bootstrap  SQL  script  (see  scripts/bootstrap.sql  for  more).    new  <description>    Creates  a  new  migration  with  the  provided  description.    up  [n]                          Run  unapplied  migrations,  ALL  by  default,  or  'n'  specified.    down  [n]                      Undoes  migrations  applied  to  the  database.  ONE  by  default  or  'n'  specified.    version  <version>    Migrates  the  database  up  or  down  to  the  specified  version.    pending                        Force  executes  pending  migrations  out  of  order  (not  recommended).    status                          Prints  the  changelog  from  the  database  if  the  changelog  table  exists.    script  <v1>  <v2>      Generates  a  delta  migration  script  from  version  v1  to  v2  (undo  if  v1  >  v2). Monday, May 14, 2012
  • 21. instalando MyBatis Migrations | project [rponte]  ~/Development/blog_project/db $  migrate  init Monday, May 14, 2012
  • 22. MyBatis Migrations em ação... Monday, May 14, 2012
  • 23. PODEMOS FACILITAR E FOI O QUE FIZEMOS ANT SCRIPT Monday, May 14, 2012
  • 25. Mybatis-Migrations-Anttasks github.com/triadworks/labs Monday, May 14, 2012
  • 26. Mybatis-Migrations-Anttasks github.com/triadworks/labs Monday, May 14, 2012
  • 28. MyBatis Migrations Ant-tasks em ação... Monday, May 14, 2012
  • 29. Rafael Ponte rponte@triadworks.com.br Monday, May 14, 2012