From f018a5d115a44aca993ba2254ff4d10838051da7 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 15 Feb 2023 17:54:26 +0100 Subject: [PATCH] 1. cast column id --- sql/import.sql | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sql/import.sql b/sql/import.sql index 5365c0e..136d2c8 100644 --- a/sql/import.sql +++ b/sql/import.sql @@ -1,13 +1,16 @@ -- -- CHILL REPRISE DE DONNEES --- version v0.1 +-- version v0.6 (== version canevas) -- --- /!\ +-- /!\ IMPORTANT -- * Avant de migrer (UP), il faut d'abord importer les codes postaux !!! --- * On essaie de matcher le canvas csv et le script -- +-- 1. Adjust Type cast for id columns +ALTER TABLE import.personnes ALTER COLUMN id TYPE INTEGER USING (id::integer); +ALTER TABLE import.periodes ALTER COLUMN id TYPE INTEGER USING (id::integer); + -- -- UP --