Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding migration for missing 'custom_import' column. #160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ygabo
Copy link

@ygabo ygabo commented Aug 1, 2024

Getting some errors when starting up the mysql server.

Error: Unknown column 'custom_import' in 'field list'
webapp-1 | at Packet.asError (/usr/src/app/node_modules/mysql2/lib/packets/packet.js:738:17)
webapp-1 | at Query.execute (/usr/src/app/node_modules/mysql2/lib/commands/command.js:29:26)
webapp-1 | at PoolConnection.handlePacket (/usr/src/app/node_modules/mysql2/lib/connection.js:481:34)
webapp-1 | at PacketParser.onPacket (/usr/src/app/node_modules/mysql2/lib/connection.js:97:12)
webapp-1 | at PacketParser.executeStart (/usr/src/app/node_modules/mysql2/lib/packet_parser.js:75:16)
webapp-1 | at Socket. (/usr/src/app/node_modules/mysql2/lib/connection.js:104:25)
webapp-1 | at Socket.emit (node:events:513:28)
webapp-1 | at addChunk (node:internal/streams/readable:315:12)
webapp-1 | at readableAddChunk (node:internal/streams/readable:289:9)
webapp-1 | at Socket.Readable.push (node:internal/streams/readable:228:10)
webapp-1 | at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
webapp-1 | code: 'ER_BAD_FIELD_ERROR',
webapp-1 | errno: 1054,
webapp-1 | sqlState: '42S22',
webapp-1 | sqlMessage: "Unknown column 'custom_import' in 'field list'",
webapp-1 | sql: "INSERT INTO lenses SET unlockable_id = '36899040876', uuid = '6ea585588cd04078ab59058dbf64580b', ... , obfuscated_user_slug = 'zNY45R4zBSahj3Iqg3u8aA', image_sequence = '{}', web_import = 0, custom_import = 0"

Added the migration files to create the column into the 'lenses' and 'unlocks' tables.

@ygabo ygabo changed the title Adding migration for 'custom_import column. Adding migration for missing 'custom_import column. Aug 1, 2024
@ygabo ygabo changed the title Adding migration for missing 'custom_import column. Adding migration for missing 'custom_import' column. Aug 1, 2024
Copy link

@junomoyellow junomoyellow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this didnt work for meeee :(
getting error msg:

'webapp-1 | Error: Unknown column 'custom_import' in 'field list'
webapp-1 | at Packet.asError (/usr/src/app/node_modules/mysql2/lib/packets/packet.js:740:17)
webapp-1 | at Query.execute (/usr/src/app/node_modules/mysql2/lib/commands/command.js:29:26)
webapp-1 | at PoolConnection.handlePacket (/usr/src/app/node_modules/mysql2/lib/base/connection.js:475:34)
webapp-1 | at PacketParser.onPacket (/usr/src/app/node_modules/mysql2/lib/base/connection.js:93:12)
webapp-1 | at PacketParser.executeStart (/usr/src/app/node_modules/mysql2/lib/packet_parser.js:75:16)
webapp-1 | at Socket. (/usr/src/app/node_modules/mysql2/lib/base/connection.js:100:25)
webapp-1 | at Socket.emit (node:events:513:28)
webapp-1 | at addChunk (node:internal/streams/readable:315:12)
webapp-1 | at readableAddChunk (node:internal/streams/readable:289:9)
webapp-1 | at Socket.Readable.push (node:internal/streams/readable:228:10)
webapp-1 | at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
webapp-1 | code: 'ER_BAD_FIELD_ERROR',
webapp-1 | errno: 1054,
webapp-1 | sqlState: '42S22',
webapp-1 | sqlMessage: "Unknown column 'custom_import' in 'field list'",
webapp-1 | sql: "INSERT INTO unlocks SET lens_id = 58000430896, lens_url = 'https://snap-storage.jaku.tv/327a226105744116a05523d7f2286838', signature = 'MGYCMQD2c9VtfZy2Pj3pgxj5QNEOwhAXSSIEpHsVUHWpvaRbGZ54S64yUwwI7sejalAjE0MCMQDdEzOODf53uC3ZXr0slfuwnYfLKP/h2o1X3Wn4FHl/FTBAGBk1t/oPp9u1uG1tPXw=', hint_id = '', additional_hint_ids = '{}', web_import = 0, custom_import = 0"
webapp-1 | } 58000430896'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants