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

Commit 91808447 by Martin Aspeli

Improve test coverage for cascade deletion in postgres

1 parent db1a504c
Showing with 8 additions and 0 deletions
...@@ -95,6 +95,14 @@ describe('QueryGenerator', function() { ...@@ -95,6 +95,14 @@ describe('QueryGenerator', function() {
dropTableQuery: [ dropTableQuery: [
{ {
arguments: ['myTable'],
expectation: "DROP TABLE IF EXISTS \"myTable\";"
},
{
arguments: ['mySchema.myTable'],
expectation: "DROP TABLE IF EXISTS \"mySchema\".\"myTable\";"
},
{
arguments: ['myTable', {cascade: true}], arguments: ['myTable', {cascade: true}],
expectation: "DROP TABLE IF EXISTS \"myTable\" CASCADE;" expectation: "DROP TABLE IF EXISTS \"myTable\" CASCADE;"
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!