
| Key: |
UNI-170
|
| Type: |
Improvement
|
| Status: |
Closed
|
| Resolution: |
Won't Fix
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
dom farr
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
Unitils
Created: 29/Sep/09 01:35 PM
Updated: 07/Nov/09 08:55 PM
|
|
| Component/s: |
dbmaintainer
|
| Affects Version/s: |
2.0,
1.1
|
| Fix Version/s: |
3.0
|
|
|
Method:
Long org.unitils.dbmaintainer.script.Script.extractIndex(String pathPart)
The version, or index, of a script is determined by splitting the file name at the underscore (if exists) in the extractIndex method of Script.
In current project we forgot the requirement to use underscore and started using hyphen to delimit the script index and name. This coincidentally worked for almost 3 months, until it didn't :) and tracking problem down lead to this request.
Use reg expression to harvest the number, if available.
|
|
Description
|
Method:
Long org.unitils.dbmaintainer.script.Script.extractIndex(String pathPart)
The version, or index, of a script is determined by splitting the file name at the underscore (if exists) in the extractIndex method of Script.
In current project we forgot the requirement to use underscore and started using hyphen to delimit the script index and name. This coincidentally worked for almost 3 months, until it didn't :) and tracking problem down lead to this request.
Use reg expression to harvest the number, if available. |
Show » |
|