不要怂,就是干,撸起袖子干!

Commit 81319d76 by Mick Hansen

fix: dont run removeColumn tests for sqlite

1 parent 130cd9a0
Showing with 14 additions and 11 deletions
...@@ -7,16 +7,19 @@ var Support = require(__dirname + '/../support') ...@@ -7,16 +7,19 @@ var Support = require(__dirname + '/../support')
// Notice: [] will be replaced by dialect specific tick/quote character when there is not dialect specific expectation but only a default expectation // Notice: [] will be replaced by dialect specific tick/quote character when there is not dialect specific expectation but only a default expectation
suite(Support.getTestDialectTeaser('SQL'), function() { if (current.dialect.name !== 'sqlite') {
suite('removeColumn', function () { suite(Support.getTestDialectTeaser('SQL'), function() {
test('schema', function () { suite('removeColumn', function () {
expectsql(sql.removeColumnQuery({ test('schema', function () {
schema: 'archive', expectsql(sql.removeColumnQuery({
tableName: 'user' schema: 'archive',
}, 'email'), { tableName: 'user'
default: 'ALTER TABLE [archive].[user] DROP COLUMN [email];', }, 'email'), {
mysql: 'ALTER TABLE `archive.user` DROP `email`;' mssql: 'ALTER TABLE [archive].[user] DROP [email];',
mysql: 'ALTER TABLE `archive.user` DROP `email`;',
postgres: 'ALTER TABLE "archive"."user" DROP COLUMN "email";',
});
}); });
}); });
}); });
}); }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!