This repository was archived by the owner on Apr 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function testCreateDatabase()
25
25
$ converter ->setTime ($ time );
26
26
$ converter ->setLicense ($ license );
27
27
28
- $ converter ->addCSV ('infoCSV ' ,$ csvDir .DIRECTORY_SEPARATOR .'info.csv ' ,2 );
28
+ $ converter ->addCSV ('infoCSV ' ,$ csvDir .DIRECTORY_SEPARATOR .'info.csv ' ,1 );
29
29
$ converter ->addCSV ('networksCSV ' ,$ csvDir .DIRECTORY_SEPARATOR .'networks.csv ' ,1 );
30
30
31
31
$ info = array (
@@ -93,7 +93,9 @@ public function testCreateDatabase()
93
93
unlink ($ dbFile );
94
94
$ tmpFiles = glob ($ tmpDir .DIRECTORY_SEPARATOR .'* ' );
95
95
foreach ($ tmpFiles as $ tmpFile ) {
96
- unlink ($ tmpFile );
96
+ if ($ tmpFile != $ tmpDir .DIRECTORY_SEPARATOR .'.gitkeep ' ) {
97
+ unlink ($ tmpFile );
98
+ }
97
99
}
98
100
}
99
101
}
Original file line number Diff line number Diff line change 1
- Строка с какой-либо информацией (например, копирайт). Вторая строка описывает колонки и тоже не будет использоваться в БД.
2
1
id,interval_num,data1,data2
3
2
2,3,"some info 1","some info 2"
4
3
17,4,"some info 3","some info 4"
5
4
89,1,"some info 5","some info 6"
6
- 192,2,"some info 7","some info 8"
7
- 34,"unused row","some info 9","some info 10"
5
+ 192,2,"some info 7","some info 8"
You can’t perform that action at this time.
0 commit comments