I'm trying to make a model's forward engineer to pass it to SQL and it throws a syntax error, the message says that it was completed with errors, the error as I said is syntax, but if the same workbench does the script, does it? why do you get it with errors?
This is the error:
Executing SQL script in server
ERROR: Error 1064: You have an error in your SQL syntax; check the
manual that corresponds to your MariaDB server version for the right
syntax to use near ' CONSTRAINT fk_saldo_usuario
FOREIGN KEY (usuario_cod_usuario)
REF' at line 10 SQL Code:
-- -----------------------------------------------------
-- Table wallet.saldo
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS wallet.saldo (
cod_saldo INT NOT NULL AUTO_INCREMENT,
saldo_meta VARCHAR(45) NULL,
saldo_actual VARCHAR(45) NULL,
usuario_cod_usuario INT NOT NULL,
PRIMARY KEY (cod_saldo),
INDEX fk_saldo_usuario_idx(usuario_cod_usuario ASC) VISIBLE,
CONSTRAINT fk_saldo_usuari
FOREIGN KEY (usuario_cod_usuario)
REFERENCES wallet.usuario (cod_usuario)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
SQL script execution finished: statements: 6 succeeded, 1 failed
Fetching back view definitions in final form.
Nothing to fetch
Before, this did not happen to me, but lately it has happened to me.