Skip to content

Instantly share code, notes, and snippets.

@cmcavoy
Created June 6, 2013 17:24
Show Gist options
  • Save cmcavoy/5723248 to your computer and use it in GitHub Desktop.
Save cmcavoy/5723248 to your computer and use it in GitHub Desktop.
12:23 PM:~/projects/csol-site
$ node bin/migrate-db
Executing: CREATE TABLE IF NOT EXISTS `SequelizeMeta` (`from` VARCHAR(255), `to` VARCHAR(255), `id` INTEGER NOT NULL auto_increment , PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Executing: SELECT * FROM `SequelizeMeta` ORDER BY id DESC LIMIT 1;
Executing migration: 20130530095331-add-user-real-names.js
Executing: ALTER TABLE `Learners` ADD `firstName` VARCHAR(255);
Executing: ALTER TABLE `Learners` ADD `lastName` VARCHAR(255);
Error: ER_DUP_FIELDNAME: Duplicate column name 'lastName'
at Query.Sequence._packetToError (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/sequences/Sequence.js:32:14)
at Query.ErrorPacket (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/sequences/Query.js:82:18)
at Protocol._parsePacket (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/Protocol.js:172:24)
at Parser.write (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/Parser.js:62:12)
at Protocol.write (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/Protocol.js:37:16)
at Socket.ondata (stream.js:38:26)
at Socket.EventEmitter.emit (events.js:126:20)
at TCP.onread (net.js:397:14)
--------------------
at Query.Sequence (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/sequences/Sequence.js:15:20)
at new Query (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/protocol/sequences/Query.js:12:12)
at Function.Connection.createQuery (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/Connection.js:48:10)
at Connection.query (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/mysql/lib/Connection.js:100:26)
at module.exports.Query.run (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/sequelize/lib/dialects/mysql/query.js:26:17)
at module.exports.execQueueItem (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/sequelize/lib/dialects/mysql/connector-manager.js:313:21)
at module.exports.enqueue (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/sequelize/lib/dialects/mysql/connector-manager.js:269:25)
at adjustCallback (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/sequelize/node_modules/generic-pool/lib/generic-pool.js:187:7)
at exports.Pool.me.acquire (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/sequelize/node_modules/generic-pool/lib/generic-pool.js:230:15)
at module.exports.connect (/home/cmcavoy/Dropbox/projects/csol-site/node_modules/sequelize/lib/dialects/mysql/connector-manager.js:251:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment