Files
cbsnexora-backend/mifosng-db/patchesPutOnDemoServer20121001/patch-0008-add_office_to_group.sql
T

4 lines
216 B
SQL

alter table m_group add column office_id bigint(20) NOT NULL AFTER id;
update m_group set office_id = 1 WHERE office_id = 0;
alter table m_group add constraint foreign key (`office_id`) references `m_office` (`id`);