diff --git a/tests/specs/Schema/SchemaBuilder+GrammarSpec.cfc b/tests/specs/Schema/SchemaBuilder+GrammarSpec.cfc index cdf9c260..ba256fe0 100644 --- a/tests/specs/Schema/SchemaBuilder+GrammarSpec.cfc +++ b/tests/specs/Schema/SchemaBuilder+GrammarSpec.cfc @@ -722,7 +722,7 @@ component extends="testbox.system.BaseSpec" { } ); } ); - xit( "can drop and add and rename and modify columns at the same time", function() { + it( "can drop and add and rename and modify columns at the same time", function() { var schema = getBuilder(); var blueprint = schema.alter( "users", function( table ) { table.dropColumn( "is_active" ); @@ -734,9 +734,9 @@ component extends="testbox.system.BaseSpec" { expect( statements ).toBeArray(); expect( statements ).toHaveLength( 4 ); expect( statements[ 1 ] ).toBeWithCase( "ALTER TABLE ""users"" DROP COLUMN ""is_active""" ); - expect( statements[ 2 ] ).toBeWithCase( "ALTER TABLE ""users"" ADD COLUMN ""tshirt_size"" ENUM(""S"",""M"",""L"",""XL"",""XXL"") NOT NULL" ); + expect( statements[ 2 ] ).toBeWithCase( "ALTER TABLE ""users"" ADD ""tshirt_size"" ENUM(""S"",""M"",""L"",""XL"",""XXL"") NOT NULL" ); expect( statements[ 3 ] ).toBeWithCase( "ALTER TABLE ""users"" CHANGE ""name"" ""username"" VARCHAR(255) NOT NULL" ); - expect( statements[ 4 ] ).toBeWithCase( "ALTER TABLE ""users"" CHANGE ""purchase_date"" ""purchased_at"" TIMESTAMP" ); + expect( statements[ 4 ] ).toBeWithCase( "ALTER TABLE ""users"" CHANGE ""purchase_date"" ""purchase_date"" TIMESTAMP" ); } ); describe( "drop", function() { diff --git a/tests/specs/Schema/SchemaBuilder+MySQLGrammarSpec.cfc b/tests/specs/Schema/SchemaBuilder+MySQLGrammarSpec.cfc index d109188e..553a1349 100644 --- a/tests/specs/Schema/SchemaBuilder+MySQLGrammarSpec.cfc +++ b/tests/specs/Schema/SchemaBuilder+MySQLGrammarSpec.cfc @@ -65,7 +65,7 @@ component extends="testbox.system.BaseSpec" { } ); } ); - xit( "can drop and add and rename and modify columns at the same time", function() { + it( "can drop and add and rename and modify columns at the same time", function() { var schema = getBuilder(); var blueprint = schema.alter( "users", function( table ) { table.dropColumn( "is_active" ); @@ -79,7 +79,7 @@ component extends="testbox.system.BaseSpec" { expect( statements[ 1 ] ).toBeWithCase( "ALTER TABLE `users` DROP COLUMN `is_active`" ); expect( statements[ 2 ] ).toBeWithCase( "ALTER TABLE `users` ADD `tshirt_size` ENUM(`S`,`M`,`L`,`XL`,`XXL`) NOT NULL" ); expect( statements[ 3 ] ).toBeWithCase( "ALTER TABLE `users` CHANGE `name` `username` VARCHAR(255) NOT NULL" ); - expect( statements[ 4 ] ).toBeWithCase( "ALTER TABLE `users` CHANGE `purchase_date` `purchased_at` TIMESTAMP" ); + expect( statements[ 4 ] ).toBeWithCase( "ALTER TABLE `users` CHANGE `purchase_date` `purchase_date` TIMESTAMP" ); } ); } ); } diff --git a/tests/specs/Schema/SchemaBuilder+OracleGrammarSpec.cfc b/tests/specs/Schema/SchemaBuilder+OracleGrammarSpec.cfc index 98de6043..a2545bbf 100644 --- a/tests/specs/Schema/SchemaBuilder+OracleGrammarSpec.cfc +++ b/tests/specs/Schema/SchemaBuilder+OracleGrammarSpec.cfc @@ -93,7 +93,7 @@ component extends="testbox.system.BaseSpec" { } ); } ); - xit( "can drop and add and rename and modify columns at the same time", function() { + it( "can drop and add and rename and modify columns at the same time", function() { var schema = getBuilder(); var blueprint = schema.alter( "users", function( table ) { table.dropColumn( "is_active" ); @@ -104,10 +104,10 @@ component extends="testbox.system.BaseSpec" { var statements = blueprint.toSql(); expect( statements ).toBeArray(); expect( statements ).toHaveLength( 4 ); - expect( statements[ 1 ] ).toBeWithCase( "ALTER TABLE ""users"" DROP COLUMN ""is_active""" ); + expect( statements[ 1 ] ).toBeWithCase( "ALTER TABLE ""USERS"" DROP COLUMN ""IS_ACTIVE""" ); expect( statements[ 2 ] ).toBeWithCase( "ALTER TABLE ""USERS"" ADD ""TSHIRT_SIZE"" VARCHAR(255) CHECK(""TSHIRT_SIZE"" IN (""S"",""M"",""L"",""XL"",""XXL"")) NOT NULL" ); - expect( statements[ 3 ] ).toBeWithCase( "ALTER TABLE ""users"" RENAME COLUMN ""name"" TO ""username""" ); - expect( statements[ 4 ] ).toBeWithCase( "ALTER TABLE ""users"" MODIFY ""purchase_date"" TIMESTAMP" ); + expect( statements[ 3 ] ).toBeWithCase( "ALTER TABLE ""USERS"" RENAME COLUMN ""NAME"" TO ""USERNAME""" ); + expect( statements[ 4 ] ).toBeWithCase( "ALTER TABLE ""USERS"" MODIFY ""PURCHASE_DATE"" TIMESTAMP" ); } ); } ); }