-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: affichage des admissions pour les bacs pro famille de metiers (#23
- Loading branch information
Showing
13 changed files
with
36,012 additions
and
35,358 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
server/migrations/20241217131448_indicateur-entree-annee.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Kysely, sql } from "kysely"; | ||
|
||
export async function up(db: Kysely<any>): Promise<void> { | ||
await db.executeQuery( | ||
sql` | ||
ALTER TABLE "indicateurEntree" | ||
ADD COLUMN "effectifsAnnee" varchar; | ||
`.compile(db) | ||
); | ||
} | ||
|
||
export async function down(db: Kysely<any>): Promise<void> { | ||
await db.executeQuery( | ||
sql` | ||
ALTER TABLE "indicateurEntree" | ||
DROP COLUMN IF EXISTS "effectifsAnnee"; | ||
`.compile(db) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { SqlRepository } from "./base.js"; | ||
import { kdb as defaultKdb } from "../db/db.js"; | ||
import { DB } from "../db/schema.js"; | ||
|
||
export class IndicateurEntreeRepository extends SqlRepository<DB, "indicateurEntree"> { | ||
constructor(kdb = defaultKdb) { | ||
super( | ||
"indicateurEntree", | ||
{ | ||
id: null, | ||
formationEtablissementId: null, | ||
capacite: null, | ||
effectifs: null, | ||
effectifsAnnee: null, | ||
premiersVoeux: null, | ||
rentreeScolaire: null, | ||
tauxPression: null, | ||
createdAt: null, | ||
updatedAt: null, | ||
}, | ||
kdb | ||
); | ||
} | ||
} | ||
|
||
export default new IndicateurEntreeRepository(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export const title = "C’EST QUI LE PRO ?"; | ||
export const title = "C’est qui le pro ?"; | ||
export const tagline = "Découvre les formations professionnelles en sortie de collège"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters