Skip to content

Commit

Permalink
fixed foreign key column length. issue #2344
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Apr 15, 2024
1 parent 9502e5b commit da925af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions j-lawyer-server/setup/create_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,13 @@ FOREIGN KEY (case_id) REFERENCES cases(id) ON DELETE CASCADE

insert into ServerSettingsBean(settingKey, settingValue) values('jlawyer.server.database.version','1.12.0.7') ON DUPLICATE KEY UPDATE settingValue = '1.12.0.7';



ALTER TABLE cases DROP FOREIGN KEY fk_group;
alter table cases modify owner_group VARCHAR(50) BINARY;
ALTER TABLE cases ADD FOREIGN KEY fk_group (owner_group) REFERENCES security_groups (id) ON DELETE RESTRICT;


insert into ServerSettingsBean(settingKey, settingValue) values('jlawyer.server.database.version','1.12.0.8') ON DUPLICATE KEY UPDATE settingValue = '1.12.0.8';

alter table cases add `filenumberext` VARCHAR(100) BINARY;
Expand Down

0 comments on commit da925af

Please sign in to comment.