-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1320 from betagouv/fix/certs
[fix] Attestations
- Loading branch information
Showing
15 changed files
with
117 additions
and
138 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
api/db/migrations/20210415162735-carpool_identities_add_index.js
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,13 @@ | ||
'use strict'; | ||
/** | ||
* Cast all foreign keys *_id as integer to match PostgreSQL types | ||
* Current type is 'varchar' as fkeys were migrated from MongoDB | ||
* as a toString() of ObjectID objects. | ||
*/ | ||
var { createMigration } = require('../helpers/createMigration'); | ||
|
||
var { setup, up, down } = createMigration(['carpool/20210415162735-carpool_identities_add_index'], __dirname); | ||
|
||
exports.setup = setup; | ||
exports.up = up; | ||
exports.down = down; |
2 changes: 2 additions & 0 deletions
2
api/db/migrations/carpool/20210415162735-carpool_identities_add_index.down.sql
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,2 @@ | ||
DROP INDEX IF EXISTS carpool.identities_created_at_idx; | ||
DROP INDEX IF EXISTS carpool.identities_phone_trunc_travel_pass_name_travel_pass_user_id_idx; |
7 changes: 7 additions & 0 deletions
7
api/db/migrations/carpool/20210415162735-carpool_identities_add_index.up.sql
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,7 @@ | ||
CREATE INDEX | ||
IF NOT EXISTS identities_created_at_idx | ||
ON carpool.identities (created_at); | ||
|
||
CREATE INDEX | ||
IF NOT EXISTS identities_phone_trunc_travel_pass_name_travel_pass_user_id_idx | ||
ON carpool.identities (phone_trunc, travel_pass_name, travel_pass_user_id); |
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
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
Oops, something went wrong.