Script Issues
Posted: Mon 28 Aug 2017 14:57
Hello,
I use MariaDB 10.2.7 and i found "schema comparison" and "edit table" issues.
dbForge create scripts with extra quotations.
for example:
CREATE TABLE test_db.test1_tbl (
id int(11) NOT NULL AUTO_INCREMENT,
test_str varchar(16) DEFAULT 'NULL',
test_int_1 int(11) NOT NULL DEFAULT 0,
test_int_2 int(11) DEFAULT NULL,
test_timestamp timestamp NOT NULL DEFAULT 'current_timestamp()',
PRIMARY KEY (id)
)
ENGINE = INNODB
AUTO_INCREMENT = 1
CHARACTER SET utf8
COLLATE utf8_general_ci;
CREATE TABLE test_db.test2_tbl (
id varchar(40) NOT NULL DEFAULT '''0''',
test_str varchar(16) NOT NULL DEFAULT '''0''',
PRIMARY KEY (id)
)
ENGINE = INNODB
CHARACTER SET utf8
COLLATE utf8_general_ci;
I think that when see NULL converts to 'NULL' , current_timestamp() converts to 'current_timestamp' and default string converts to '''value'''.
I use MariaDB 10.2.7 and i found "schema comparison" and "edit table" issues.
dbForge create scripts with extra quotations.
for example:
CREATE TABLE test_db.test1_tbl (
id int(11) NOT NULL AUTO_INCREMENT,
test_str varchar(16) DEFAULT 'NULL',
test_int_1 int(11) NOT NULL DEFAULT 0,
test_int_2 int(11) DEFAULT NULL,
test_timestamp timestamp NOT NULL DEFAULT 'current_timestamp()',
PRIMARY KEY (id)
)
ENGINE = INNODB
AUTO_INCREMENT = 1
CHARACTER SET utf8
COLLATE utf8_general_ci;
CREATE TABLE test_db.test2_tbl (
id varchar(40) NOT NULL DEFAULT '''0''',
test_str varchar(16) NOT NULL DEFAULT '''0''',
PRIMARY KEY (id)
)
ENGINE = INNODB
CHARACTER SET utf8
COLLATE utf8_general_ci;
I think that when see NULL converts to 'NULL' , current_timestamp() converts to 'current_timestamp' and default string converts to '''value'''.