Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Quoting sequences #12

@agonzalez8

Description

@agonzalez8

Hi Andrea,

Today I found this amazing tool but I wasn't able to compare sequences, my database is generated by Sequelize and I needed to add this:

diff --git a/lib/Schema.js b/lib/Schema.js
index 73bceae..fd218d3 100644
--- a/lib/Schema.js
+++ b/lib/Schema.js
@@ -557,7 +557,7 @@ var Schema = function (db, options) {
    */
   var getSequences = function (callback) {
     log.verbose('log', 'loading sequences ...')
-    db.query('SELECT sequence_name AS name ' +
+    db.query('SELECT quote_ident(sequence_name) AS name ' +
     'FROM information_schema.sequences ' +
     'WHERE sequence_schema = $1',
       ['public'],

Actually I'm not interested on sequences but on enum values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions