Cum să specifici autorul change set-urilor în Liquibase
DodaTech
Updated 2025-01-15
1 min read
In this tutorial, you'll learn about Cum să specifici autorul change set. We cover key concepts, practical examples, and best practices.
Autorul unui change set în Liquibase identifică persoana care a creat modificarea, facilitând auditul și colaborarea în echipă.
Problema
Fără un autor specificat, nu poți determina cine a creat o modificare. Acest lucru complică debug-ul și responsabilitățile.
Specificarea autorului
<changeSet id="1" author="ionut">
<createTable tableName="users"/>
</changeSet>
- changeSet:
id: 1
author: ionut
changes:
- createTable:
tableName: users
Convenții pentru numele autorilor
- changeSet:
id: 1
author: ionut (ionut@example.com)
changes:
- createTable:
tableName: users
sau:
- changeSet:
id: 1
author: ionut.popescu
changes:
- createTable:
tableName: users
Vizualizarea autorilor
SELECT author, id, dateexecuted
FROM DATABASECHANGELOG
ORDER BY dateexecuted;
Output:
author | id | dateexecuted
----------+----+---------------------
ionut | 1 | 2025-01-15 12:00:00
maria | 2 | 2025-01-15 14:00:00
Erori frecvente
- Autor lipsă — change set-urile necesită atributul author.
- Autor incorect — folosește nume consistente (nu alterna ionut, Ionut, ionutz).
- Schimbarea autorului — nu schimba autorul unui change set deja aplicat.
- Autor generic — evită "admin" sau "developer" ca nume de autor.
FAQ
Built by the developers of Doda Browser, DodaZIP, and Durga Antivirus Pro. DodaTech tools integrate seamlessly with Liquibase for enhanced productivity and security.
← Previous
Cum să adaugi chei primare cu Liquibase
Next →
Cum să adaugi comentarii la change set-uri în Liquibase
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro