@@ -104,25 +104,6 @@ private function isSQLite() {
104
104
return $ this ->connection ->getDriver () instanceof \Doctrine \DBAL \Driver \PDOSqlite \Driver;
105
105
}
106
106
107
-
108
- public function testDuplicateKeyUpgrade () {
109
- $ this ->expectException (\OC \DB \MigrationException::class);
110
-
111
- if ($ this ->isSQLite ()) {
112
- $ this ->markTestSkipped ('sqlite does not throw errors when creating a new key on existing data ' );
113
- }
114
- list ($ startSchema , $ endSchema ) = $ this ->getDuplicateKeySchemas ();
115
- $ migrator = $ this ->manager ->getMigrator ();
116
- $ migrator ->migrate ($ startSchema );
117
-
118
- $ this ->connection ->insert ($ this ->tableName , ['id ' => 1 , 'name ' => 'foo ' ]);
119
- $ this ->connection ->insert ($ this ->tableName , ['id ' => 2 , 'name ' => 'bar ' ]);
120
- $ this ->connection ->insert ($ this ->tableName , ['id ' => 2 , 'name ' => 'qwerty ' ]);
121
-
122
- $ migrator ->checkMigrate ($ endSchema );
123
- $ this ->fail ('checkMigrate should have failed ' );
124
- }
125
-
126
107
public function testUpgrade () {
127
108
list ($ startSchema , $ endSchema ) = $ this ->getDuplicateKeySchemas ();
128
109
$ migrator = $ this ->manager ->getMigrator ();
@@ -132,7 +113,6 @@ public function testUpgrade() {
132
113
$ this ->connection ->insert ($ this ->tableName , ['id ' => 2 , 'name ' => 'bar ' ]);
133
114
$ this ->connection ->insert ($ this ->tableName , ['id ' => 3 , 'name ' => 'qwerty ' ]);
134
115
135
- $ migrator ->checkMigrate ($ endSchema );
136
116
$ migrator ->migrate ($ endSchema );
137
117
$ this ->addToAssertionCount (1 );
138
118
}
@@ -151,7 +131,6 @@ public function testUpgradeDifferentPrefix() {
151
131
$ this ->connection ->insert ($ this ->tableName , ['id ' => 2 , 'name ' => 'bar ' ]);
152
132
$ this ->connection ->insert ($ this ->tableName , ['id ' => 3 , 'name ' => 'qwerty ' ]);
153
133
154
- $ migrator ->checkMigrate ($ endSchema );
155
134
$ migrator ->migrate ($ endSchema );
156
135
$ this ->addToAssertionCount (1 );
157
136
@@ -190,7 +169,6 @@ public function testAddingPrimaryKeyWithAutoIncrement() {
190
169
$ migrator = $ this ->manager ->getMigrator ();
191
170
$ migrator ->migrate ($ startSchema );
192
171
193
- $ migrator ->checkMigrate ($ endSchema );
194
172
$ migrator ->migrate ($ endSchema );
195
173
196
174
$ this ->addToAssertionCount (1 );
@@ -212,7 +190,7 @@ public function testReservedKeywords() {
212
190
$ migrator = $ this ->manager ->getMigrator ();
213
191
$ migrator ->migrate ($ startSchema );
214
192
215
- $ migrator -> checkMigrate ( $ endSchema );
193
+
216
194
$ migrator ->migrate ($ endSchema );
217
195
218
196
$ this ->addToAssertionCount (1 );
0 commit comments