We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1274eb6 + 79d7f75 commit 3d3ca79Copy full SHA for 3d3ca79
1 file changed
Classes/Domain/Service/VersionResolver.php
@@ -7,7 +7,17 @@ class VersionResolver
7
{
8
public function extractVersion(string $migrationClassName): string
9
10
- preg_match('#\\Version(\d+)$#', $migrationClassName, $matches);
11
- return $matches[1];
+ /*
+ * date format version number:
12
+ * 4 digits year
13
+ * + 2 digits month
14
+ * + 2 digits day
15
+ * + 2 digits hour
16
+ * + 2 digits minute
17
+ * + 2 digits second
18
+ * = 14 digits
19
+ */
20
+ preg_match('#\\\\Version(?<dateFormatVersionNumber>\\d{14})(\\\\|$)#', $migrationClassName, $matches);
21
+ return $matches['dateFormatVersionNumber'];
22
}
23
0 commit comments