programatica codepax-16-11-2012
DESCRIPTION
TRANSCRIPT
![Page 1: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/1.jpg)
![Page 2: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/2.jpg)
![Page 3: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/3.jpg)
Ce este codepax?
• Tool web based de deployment automat
• Integrat cu SVN
• Contine un sistem de versionare DB
• Sistem de hook-uri
![Page 4: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/4.jpg)
Versionarea codului
• Managementul codului sursa
• Istoric modificari cod
![Page 5: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/5.jpg)
De ce si baza de date?
• Structura unitara pe toate mediile de
dezvoltare
• Sincronizare cod - baza de date
• Istoric schimbari pe baza de date
![Page 6: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/6.jpg)
Ce mai exista deja?
SQL Source Control
DB Ghost
SQL comparison toolset
Oracle Workspace Manager
Oracle Change Management
Pack
Oracle XML DB
phpMyVersion
![Page 7: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/7.jpg)
Ce face mai exact?
• Versioneaza schema
• Foloseste SVN-ul pentru versionare
• Foloseste DB-ul pentru versiuni
• Contine un set de date de test
![Page 8: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/8.jpg)
Concepte
• Baseline
• Change scripts
• Test data
• Data change scripts
![Page 9: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/9.jpg)
Behind the scenes
x.y.0.sql - baseline
x.y.z.sql - change script
x.y.w.sql - data change script
![Page 10: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/10.jpg)
Operatii pe localhost / DEV
1. Refacere baza de date
2. Aplicare baseline
3. Rulare change scripts
4. Incarcare test data
5. Rulare data change scripts
![Page 11: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/11.jpg)
Operatii pe STG / PROD
1. Rulare change scripts
2. Rulare data change scripts
![Page 12: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/12.jpg)
Tool-uri folosite
Operatii pe baza de date:
• mysql
• mysqldump
• psql
• pg_dump
PDO pentru versiuni
![Page 13: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/13.jpg)
Hooks
• Script-uri custom
• Operatii pre-release (STG) si post-release
(PROD)
![Page 14: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/14.jpg)
Ce NU este
• Un sistem de backup
• Un mecanism de rollback al datelor
• Un sistem de sincronizare servere
• Un sistem de versionare a datelor
![Page 15: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/15.jpg)
Ce poti face tu?
• Contribuie cu module noi
o http://www.codepax.com/
o http://sourceforge.net/projects/codepax/
• Contacteaza-ne
![Page 16: Programatica codepax-16-11-2012](https://reader034.vdocuments.pub/reader034/viewer/2022042714/54ba899d4a7959f9198b45a3/html5/thumbnails/16.jpg)