File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -267,39 +267,6 @@ public function testGenerateTableSqlShouldNotAutoQuotePrimaryKey(): void
267267 );
268268 }
269269
270- public function testAlterTableAddColumns (): void
271- {
272- $ table = Table::editor ()
273- ->setUnquotedName ('user ' )
274- ->setColumns (
275- Column::editor ()
276- ->setUnquotedName ('id ' )
277- ->setTypeName (Types::INTEGER )
278- ->create (),
279- )
280- ->create ();
281-
282- $ diff = new TableDiff ($ table , addedColumns: [
283- Column::editor ()
284- ->setUnquotedName ('foo ' )
285- ->setTypeName (Types::STRING )
286- ->create (),
287- Column::editor ()
288- ->setUnquotedName ('count ' )
289- ->setTypeName (Types::INTEGER )
290- ->setNotNull (false )
291- ->setDefaultValue (1 )
292- ->create (),
293- ]);
294-
295- $ expected = [
296- 'ALTER TABLE user ADD COLUMN foo VARCHAR NOT NULL ' ,
297- 'ALTER TABLE user ADD COLUMN count INTEGER DEFAULT 1 ' ,
298- ];
299-
300- self ::assertEquals ($ expected , $ this ->platform ->getAlterTableSQL ($ diff ));
301- }
302-
303270 public function testRenameNonExistingColumn (): void
304271 {
305272 $ table = Table::editor ()
You can’t perform that action at this time.
0 commit comments