Commit 6295a707eabfd3ea6262f671bc3c35deb477e6e7

Authored by Alexandre
1 parent 83b3f9b0

Correction des contraintes en double dans la génération du build.sql

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
install/installation.sh
@@ -263,6 +263,7 @@ cd database/ @@ -263,6 +263,7 @@ cd database/
263 263
264 echo "Creation script de construction." 264 echo "Creation script de construction."
265 [[ -f build.sql ]] && cp -p build.sql build.sql.ORIG 265 [[ -f build.sql ]] && cp -p build.sql build.sql.ORIG
  266 + #Contraintes présentes dans le fichier "labinvent_2.0_19-04-16.sql"
266 cat ./labinvent_2.0_19-04-16.sql > ./build.sql 267 cat ./labinvent_2.0_19-04-16.sql > ./build.sql
267 # Ajout des contraintes 268 # Ajout des contraintes
268 #cat ./Upd_TableConstraints.sql >> ./build.sql 269 #cat ./Upd_TableConstraints.sql >> ./build.sql
@@ -277,7 +278,7 @@ if [ $INSTALL_DATA_IRAP -eq 1 ] ; then @@ -277,7 +278,7 @@ if [ $INSTALL_DATA_IRAP -eq 1 ] ; then
277 #if [ -z $rep ] || [ $rep = "N" ] || [ $rep = "n" ] || [ $rep = "Non" ] || [ $rep = "non" ] || [ $rep = "NON" ]; then 278 #if [ -z $rep ] || [ $rep = "N" ] || [ $rep = "n" ] || [ $rep = "Non" ] || [ $rep = "non" ] || [ $rep = "NON" ]; then
278 if [ -z $rep ] || [ $rep = "O" ] || [ $rep = "o" ] || [ $rep = "Oui" ] || [ $rep = "oui" ] || [ $rep = "OUI" ]; then 279 if [ -z $rep ] || [ $rep = "O" ] || [ $rep = "o" ] || [ $rep = "Oui" ] || [ $rep = "oui" ] || [ $rep = "OUI" ]; then
279 echo "Installation des donnees IRAP dans la base de donnees" 280 echo "Installation des donnees IRAP dans la base de donnees"
280 - cat ./Insert_TablesFunct.sql ./Upd_TableConstraints.sql >> ./build.sql 281 + cat ./Insert_TablesFunct.sql > ./build.sql
281 #cat ./labinvent_2.0_insert-irap_19-04-16.sql >> ./build.sql 282 #cat ./labinvent_2.0_insert-irap_19-04-16.sql >> ./build.sql
282 else 283 else
283 echo "Pas d'install de donnees IRAP dans la base" 284 echo "Pas d'install de donnees IRAP dans la base"