Skip to content

Commit

Permalink
docs(database): add cleanup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
larueli authored Nov 18, 2021
1 parent 0338ec6 commit 6a7a91d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ URL de retour : `https://url_billetterie/login/callback`

Scopes : public

## Nettoyage

Pour supprimer de vieux billets, d'abord :

1. Sauvegarde de la DB
2. Suppression des billets `DELETE FROM billets WHERE order_id IN (SELECT id FROM orders WHERE created_at < "2021-01-01");`
3. Suppression des commandes `DELETE FROM orders WHERE created_at < "2021-01-01";`

## Déploiement sur Dokku
Documentation permettant de déployer une nouvelle Billetterie sur un nouveau domaine. Si vous souhaitez modifier une Billetterie déjà déployé, jetez un coup d'oeils aux branches avec le prefix `deploy/`.

Expand Down

0 comments on commit 6a7a91d

Please sign in to comment.