Skip to content

Commit

Permalink
#84 | Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Mar 13, 2024
1 parent 377ba92 commit 4c23f97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public void shouldCreateSqlWithCommonColumns() {
TableMetadata tableMetadata = new TableMetadata();
tableMetadata.setName("tableName");

assertThat(new CreateTable("tableName", new PersonTable(false).columns()).getSql(), containsString("create table schema.tableName (\"id\" integer, \"uuid\" text, \"is_voided\" boolean, \"created_by_id\" integer, \"last_modified_by_id\" integer, \"created_date_time\" timestamp with time zone, \"last_modified_date_time\" timestamp with time zone, \"organisation_id\" integer, \"address_id\" integer, \"registration_date\" date, \"first_name\" text, \"last_name\" text, \"registration_location\" point, \"legacy_id\" text, \"latest_approval_status\" text, \"date_of_birth\" date, \"date_of_birth_verified\" boolean, \"gender\" text );\ngrant all privileges on all tables in schema schema to dbUser;"));
assertThat(new CreateTable("tableName", new PersonTable(false).columns()).getSql(), containsString("create table schema.tableName (\"id\" integer, \"uuid\" text, \"is_voided\" boolean, \"created_by_id\" integer, \"last_modified_by_id\" integer, \"created_date_time\" timestamp with time zone, \"last_modified_date_time\" timestamp with time zone, \"organisation_id\" integer, \"address_id\" integer, \"registration_date\" date, \"first_name\" text, \"last_name\" text, \"registration_location\" point, \"legacy_id\" text, \"latest_approval_status\" text, \"date_of_birth\" date, \"date_of_birth_verified\" boolean, \"gender\" text );\ngrant all privileges on all tables in schema \"schema\" to \"dbUser\";"));
}
}

0 comments on commit 4c23f97

Please sign in to comment.