source control for your database in five steps hello
play

Source control for your database in five steps Hello! I am Deon - PowerPoint PPT Presentation

Source control for your database in five steps Hello! I am Deon Taljaard Application Developer Agenda Source control for databases? What is Liquibase? What are the benefits of using Liquibase? Demo Questions? Source


  1. Source control for your database in five steps

  2. Hello! I am Deon Taljaard Application Developer

  3. Agenda ◉ Source control for databases? ◉ What is Liquibase? ◉ What are the benefits of using Liquibase? ◉ Demo ◉ Questions?

  4. Source control for 1 databases?

  5. Source control for databases? We have all used source control software for our code What about our databases? ◉ Manual approach ◉ Version SQL scripts ◉ Homegrown tool

  6. Source control for databases? Consider the following scenarios: ◉ A client has logged a defect and you need to restore your database to a state that matches a specific version of the code base the defect resides in ◉ What happens to the data in the database if the schema changes

  7. Source control for databases? Problems with manually addressing scenarios: ◉ Inconsistent application of changes ◉ Ineffective mechanisms for managing changes ◉ Changes may not have been communicated to the team ◉ Out of sync database between environments

  8. Source control for databases?

  9. Source control for databases? There are tools available to cater for scenarios like these and many more And more...

  10. Source control for databases? Liquibase is NOT the only tool for doing this ◉ If anything, I hope that at the end of the presentation all of us may realise the value and importance of employing such a technology in our software projects - and that you consider which tool will work for you and your projects.

  11. What is Liquibase and 2 what is it used for?

  12. What is Liquibase? ◉ Liquibase is an open source database-independent library for tracking, managing and applying database schema changes ◉ It has an extensive feature set, yet it’s simple enough to get started with

  13. What is Liquibase? Core concepts for working with Liquibase: ◉ Changeset ◉ Changelog ◉ Databasechangelog ◉ Databasechangeloglock

  14. What are the benefits of 3 using Liquibase?

  15. What are the benefits of using Liquibase? From the Liquibase site: ◉ Supports code branching and merging ◉ Supports multiple developers ◉ Supports multiple database types ◉ Supports XML, YAML, JSON and SQL formats ◉ Generate Database "diffs"

  16. What are the benefits of using Liquibase? Personal additions: ◉ It keeps all the changes to the db in one place ◉ It abstracts schema changes into a model, which is easily understandable ◉ All the changes do not have to be kept in one change log file - use sub changelogs and include in master changelog

  17. What are the benefits of using Liquibase? Personal additions: ◉ Makes applying DB changes quick, easy and safe ◉ We can integrate Liquibase into our build management to deal with database changes. So applying LiquiBase is just a click or two. ◉ The learning curve is steep, however first results are achieved quick

  18. 4 Demo

  19. Demo Two scenarios ◉ Employing Liquibase from the inception of a project ◉ Adding Liquibase to an existing/legacy project

  20. Demo Employing Liquibase from the inception of a project Add Add Add Liquibase master Liquibase changeset update changelog Commit changelog

  21. Demo 1. Add Liquibase

  22. Demo 2. Add master changelog

  23. Demo 3. Add changeset

  24. Demo 4. Run Liquibase update 5. Commit changelog

  25. Demo Adding Liquibase to an existing/legacy project Add Add Generate Commit master Liquibase changelog changelog changelog

  26. Demo 1. Add Liquibase

  27. Demo 2. Add master changelog

  28. Demo 3. Run Liquibase generateChangeLog (with changelogSync) 4. Commit changelog(s)

  29. Thanks! Any questions?

  30. Credits Special thanks to all the people who made and released these awesome resources for free: ◉ Presentation template by SlidesCarnival

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend