Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reduced the varchar max size from 2048 to 1000
  • Loading branch information
lukeswindale committed Aug 9, 2024
commit 746d5728d1e6d027c76308f1ff424708367ae234
6 changes: 3 additions & 3 deletions src/main/resources/sql/create-resource-tables.sql
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually don't think this change is required. We obviously want it to be greater than 333 but I think that was the maximum that mysql engine would allow at the time. Regardless, I think SI has already extended the max term length so this is likely not needed

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
drop table if exists res_us_gb_terms;
create table res_us_gb_terms (
us_term VARCHAR(2048),
gb_term VARCHAR(2048)
us_term VARCHAR(1000),
gb_term VARCHAR(1000)
)engine=myisam default charset=utf8;
create index idx_res_usTermMap on res_us_gb_terms(us_term);
create index idx_res_gbTermMap on res_us_gb_terms(gb_term);
Expand All @@ -10,7 +10,7 @@ create index idx_res_gbTermMap on res_us_gb_terms(gb_term);
drop table if exists res_casesensitiveTerm;

create table res_casesensitiveTerm(
casesensitiveTerm VARCHAR(2048) not null
casesensitiveTerm VARCHAR(1000) not null
)engine=myisam default charset=utf8;
create index idx_casesensitiveTerm on res_casesensitiveTerm(casesensitiveTerm);