Estava com erro ao executar a migration de criação da tabela "Resposta" e corrigi alterando para o seguinte comando SQL:
CREATE TABLE Resposta (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
mensagem VARCHAR(255) NOT NULL,
dataCriacao TIMESTAMP NOT NULL,
solucao BOOLEAN NOT NULL,
autor_id BIGINT NOT NULL,
topico_id BIGINT NOT NULL,
FOREIGN KEY (autor_id) REFERENCES Usuario(id),
FOREIGN KEY (topico_id) REFERENCES Topico(id)
);
ERROR: SQL State : 42001 Error Code : 42001 Message : Syntax error in SQL statement "create table resposta(\000a id bigint not null,\000a mensagem varchar(300) not null,\000a datacriacao datetime not null,\000a topicoid bigint not null,\000a autorid bigint not null,\000a solucao int not null,\000a primary key(id),\000a foreign key topicoid references topico(id),\000a foreign key autorid references usuario(id)\000a)"; expected "ARRAY, INVISIBLE, VISIBLE, NOT, NULL, AS, DEFAULT, GENERATED, ON, NOT, NULL, AUTOINCREMENT, DEFAULT, NULLTODEFAULT, SEQUENCE, SELECTIVITY, COMMENT, CONSTRAINT, COMMENT, PRIMARY, UNIQUE, NOT, NULL, CHECK, REFERENCES, AUTOINCREMENT, ,, )"; SQL statement: create table resposta( id bigint not null, mensagem varchar(300) not null, datacriacao datetime not null, topicoid bigint not null, autorid bigint not null, solucao int(1) not null, primary key(id), foreign key topicoid references topico(id), foreign key autorid references usuario(id) ) [42001-212] Location : db/migration/V4createtableresposta.sql