diff --git a/migrations/2022-12-31-084206_title/up.sql b/migrations/2022-12-31-084206_title/up.sql index 7ed522e..12a1e0b 100644 --- a/migrations/2022-12-31-084206_title/up.sql +++ b/migrations/2022-12-31-084206_title/up.sql @@ -1,9 +1,5 @@ -- Your SQL goes here --- TODO: add constraints for editor (foreign key), find a way to get dynamic size array with this constraint. --- This constraint is shown by "relations_editeurs". --- Maybe same for "issns", if we need it. - CREATE TABLE title ( id SERIAL PRIMARY KEY, mirabelid INTEGER NOT NULL, @@ -19,23 +15,4 @@ CREATE TABLE title ( langues TEXT[] NOT NULL, liens TEXT[] NOT NULL, url_revue_mirabel VARCHAR - -- "issns": [ - -- { - -- "bnfark": "cb344022072", - -- "issn": "0982-2321", - -- "issnl": "0982-2321", - -- "statut": "valide", - -- "sudocnoholding": false, - -- "sudocppn": "104192186", - -- "support": "papier", - -- "worldcatocn": 474295645 - -- } - -- ], - -- "relations_editeurs": [ - -- { - -- "editeur": "Groupe de réflexion inter et transdisciplinaire", - -- "editeur_id": 1345, - -- "precedent": false - -- } - -- ] )