Skip to content

Commit

Permalink
add change colum nominal_diameter type to integer instead of text
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed Feb 4, 2025
1 parent c2508f5 commit 517ff89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datamodel/changelogs/0001/05_add_vl_pipe_section_pipe_dn.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
-- Change type of column -- see https://stackoverflow.com/questions/7162903/how-to-alter-a-columns-data-type-in-a-postgresql-table (version that allows to have already data in db)

ALTER TABLE pipe_section ALTER COLUMN nominal_diameter TYPE integer USING (NULLIF(nominal_diameter, '')::integer);
/*---------------------------------------------------------------------------------------*/
/* AJOUT DE LA TABLE DES DIAMETRES NOMINAUX DE CONDUITES () */
/*---------------------------------------------------------------------------------------*/
Expand Down

0 comments on commit 517ff89

Please sign in to comment.