Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d18ce51

Browse files
committedJun 3, 2024··
Fixed one more test for H2
1 parent 14118c4 commit d18ce51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎data-processor/src/test/groovy/io/micronaut/data/processor/sql/BuildTableSpec.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ class Emb {
423423
def employeeGroupSql = builder.buildCreateTableStatements(employeeGroupEntity)
424424
then:"No join table is created"
425425
employeeSql.length == 1
426-
employeeSql[0] == 'CREATE TABLE `employee` (`id` BIGINT AUTO_INCREMENT PRIMARY KEY,`name` VARCHAR(255) NOT NULL,`category_id` BIGINT NOT NULL,`employer_id` BIGINT NOT NULL);'
426+
employeeSql[0] == 'CREATE TABLE `employee` (`id` BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,`name` VARCHAR(255) NOT NULL,`category_id` BIGINT NOT NULL,`employer_id` BIGINT NOT NULL);'
427427
employeeGroupSql.length == 1
428-
employeeGroupSql[0] == 'CREATE TABLE `employee_group` (`id` BIGINT AUTO_INCREMENT PRIMARY KEY,`name` VARCHAR(255) NOT NULL,`category_id` BIGINT NOT NULL,`employer_id` BIGINT NOT NULL);'
428+
employeeGroupSql[0] == 'CREATE TABLE `employee_group` (`id` BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,`name` VARCHAR(255) NOT NULL,`category_id` BIGINT NOT NULL,`employer_id` BIGINT NOT NULL);'
429429
}
430430

431431
void "test create ManyToMany table with schema"() {

0 commit comments

Comments
 (0)
Please sign in to comment.