Salvei o arquivo direitinho, fiz tudo igual a aula, deu tudo certo. Porém ao salvar novamente o arquivo, sem modificar nada ele atualiza e da erro de que a tabela já existe. Devo excluir?
Error: ER_TABLE_EXISTS_ERROR: Table 'atendimentos' already exists
at Query.Sequence._packetToError (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
at Query.ErrorPacket (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\sequences\Query.js:79:18)
at Protocol._parsePacket (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\Protocol.js:291:23)
at Parser._parsePacket (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\Parser.js:433:10)
at Parser.write (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\Parser.js:43:10)
at Protocol.write (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\Protocol.js:38:16)
at Socket.<anonymous> (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\Connection.js:88:28)
at Socket.<anonymous> (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\Connection.js:526:10)
at Socket.emit (events.js:305:20)
at addChunk (_stream_readable.js:341:12)
--------------------
at Protocol._enqueue (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\Protocol.js:144:48)
at Connection.query (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\Connection.js:198:25)
at Tabelas.criarAtedimentos (C:\Users\alder\OneDrive\Projetos Node\Api_com_express_e_MySQL\infraestrutura\tabelas.js:11:22)
at Tabelas.init (C:\Users\alder\OneDrive\Projetos Node\Api_com_express_e_MySQL\infraestrutura\tabelas.js:5:14)
at Handshake.<anonymous> (C:\Users\alder\OneDrive\Projetos Node\Api_com_express_e_MySQL\index.js:15:17)
at Handshake.<anonymous> (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\Connection.js:526:10)
at Handshake._callback (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\Connection.js:488:16)
at Handshake.Sequence.end (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24)
at Handshake.Sequence.OkPacket (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\sequences\Sequence.js:92:8)
at Protocol._parsePacket (C:\Users\alder\OneDrive\Projetos Node\node_modules\mysql\lib\protocol\Protocol.js:291:23) {
code: 'ER_TABLE_EXISTS_ERROR',
errno: 1050,
sqlMessage: "Table 'atendimentos' already exists",
sqlState: '42S01',
index: 0,
sql: 'CREATE TABLE atendimentos (id int NOT NULL AUTO_INCREMENT, cliente varchar(50) NOT NULL, pet varchar (20),
servico varchar (20) NOT NULL, status varchar (20) NOT NULL, observacoes text, PRIMARY KEY(id))'