Skip to content

Commit b49ac21

Browse files
BENCH-249 Updated init_db_for_tests.sql to reflect changes to TIMESTAMP
1 parent a9a9bd0 commit b49ac21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/resources/test_sql_scripts/init_db_for_tests.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ CREATE TABLE `category` (
1010
`id` bigint(20) NOT NULL AUTO_INCREMENT,
1111
`name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
1212
`description` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
13-
`created_on` TIMESTAMP DEFAULT NOT NULL,
13+
`created_on` TIMESTAMP NOT NULL,
1414
`retired` bit(1) NOT NULL,
15-
`last_updated` TIMESTAMP DEFAULT NOT NULL,
15+
`last_updated` TIMESTAMP NOT NULL,
1616
PRIMARY KEY (`id`) USING BTREE
1717
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
1818

1919
INSERT INTO category (name, description, created_on, retired, last_updated)
20-
VALUES('CatOne', 'CatOne description', '', 0, '');
20+
VALUES('CatOne', 'CatOne description', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP);
2121

2222
-- ----------------------------
2323
-- Records of category

0 commit comments

Comments
 (0)