Opened 7 years ago

Closed 7 years ago

#1656 closed defect (fixed)

migrate_petascopedb.sh should be idempotent

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: major Milestone: 9.5
Component: petascope Version: development
Keywords: Cc: Bang Pham Huu, Vlad Merticariu
Complexity: Medium

Description

Running migrate_petascopedb.sh multiple times, or running it on a brand new petascopedb that doesn't need migration shouldn't result in an error.

Running it on a freshly initialized 9.5 petascopedb results in this unnecessary error:

Cannot migrate petascope's database with same JDBC URL: 
jdbc:postgresql://localhost:5432/petascopedb

Change History (1)

comment:1 by Dimitar Misev, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.