Project

General

Profile

« Previous | Next » 

Revision 2504

Added by sgarg about 19 years ago

Making changes in postgres db upgrade script such that instead of JDBC, SQL is used for updating the DB

View differences:

upgrade_db_to_1_5.java
111 111

  
112 112
                    count++;
113 113
                    if (count%5 == 0) {
114
                        System.out.print(count + "...");
114
                        System.out.println(count + "...");
115 115
                    }
116 116
                }
117 117
            } catch (NumberFormatException nfe) {
......
136 136
            DriverManager.registerDriver(new @dbDriver@());
137 137
            sqlca = DriverManager.getConnection(url, user, password);
138 138

  
139
            // Upgrade the xml_nodes table
140
            upgrade_xml_nodes(sqlca);
141

  
139
            // Upgrade the xml_nodes table only if it oracle
140
	    if (database.equals("oracle")) {
141
            	upgrade_xml_nodes(sqlca);
142
	    }
142 143
            // Close the connection...
143 144
            sqlca.close();
144 145
        } catch (SQLException ex) {

Also available in: Unified diff