Changeset 5883
- Timestamp:
- Nov 22, 2011, 12:00:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/Migration.java
r5882 r5883 305 305 nextTick = System.currentTimeMillis()+TICK_INTERVAL; 306 306 307 long approxRows = table.getRowCount(engine, connection, true); 308 File exportFile = getDataFile(table); 309 if (exportFile.exists()) 310 { 311 // Skip this table and move on to the next 312 actualExported += approxRows; 313 progress.display((int)((actualExported * 100) / approxTotal), 314 tableName + ": skipped (file already exists)\n"); 315 continue; // with next table 316 } 317 307 318 // Get columns in sorted order 308 319 SortedSet<ColumnInfo> columns = new TreeSet<ColumnInfo>(); … … 330 341 331 342 // Create output file 332 File exportFile = getDataFile(table);333 343 writer = new BufferedWriter( 334 344 new OutputStreamWriter(FileUtil.getOutputStream(exportFile), "UTF-8")); 335 345 336 long approxRows = table.getRowCount(engine, connection, true);337 346 ResultSet rows = st.executeQuery(select.toString()); 338 347 int actualRows = 0;
Note: See TracChangeset
for help on using the changeset viewer.