mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
alembic: add page and French translation (#20746)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com> Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com>
This commit is contained in:
co-authored by
Ivan Baluta
Alexandre ZANNI
parent
9107d90a69
commit
5454596461
@@ -0,0 +1,24 @@
|
||||
# alembic
|
||||
|
||||
> Outil de migration de base de données pour SQLAlchemy.
|
||||
> Plus d'informations : <https://manned.org/alembic>.
|
||||
|
||||
- Initialise Alembic dans un projet :
|
||||
|
||||
`alembic init {{chemin/vers/dossier}}`
|
||||
|
||||
- Créé un script de migration avec génération automatique :
|
||||
|
||||
`alembic revision --autogenerate -m "{{message}}"`
|
||||
|
||||
- Met à jour la base de données vers la dernière révision :
|
||||
|
||||
`alembic upgrade head`
|
||||
|
||||
- Revient à la révision précédente :
|
||||
|
||||
`alembic downgrade -1`
|
||||
|
||||
- Affiche l'historique des migrations :
|
||||
|
||||
`alembic history`
|
||||
@@ -0,0 +1,24 @@
|
||||
# alembic
|
||||
|
||||
> Database migration tool for SQLAlchemy.
|
||||
> More information: <https://manned.org/alembic>.
|
||||
|
||||
- Initialize Alembic in a project:
|
||||
|
||||
`alembic init {{path/to/directory}}`
|
||||
|
||||
- Create a new migration script with autogeneration:
|
||||
|
||||
`alembic revision --autogenerate -m "{{message}}"`
|
||||
|
||||
- Upgrade the database to the latest revision:
|
||||
|
||||
`alembic upgrade head`
|
||||
|
||||
- Downgrade the database by one revision:
|
||||
|
||||
`alembic downgrade -1`
|
||||
|
||||
- Show the migration history:
|
||||
|
||||
`alembic history`
|
||||
Reference in New Issue
Block a user