Skip to content

Commit 23ee902

Browse files
committed
Drop table inheritance for *_notes and *_translations tables
Re ledgersmb#8046
1 parent b3ad1fe commit 23ee902

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
alter table asset_note no inherit note;
3+
alter table eca_note no inherit note;
4+
alter table entity_note no inherit note;
5+
alter table invoice_note no inherit note;
6+
alter table journal_note no inherit note;
7+
8+
drop table note;
9+
10+
alter table account_heading_translation no inherit "translation";
11+
alter table account_translation no inherit "translation";
12+
alter table business_unit_translation no inherit "translation";
13+
alter table parts_translation no inherit "translation";
14+
alter table partsgroup_translation no inherit "translation";
15+
16+
drop table "translation";

sql/changes/LOADORDER

+1
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,4 @@ mc/delete-migration-validation-data.sql
197197
1.13/change-logout.sql
198198
1.13/rm-status.sql
199199
1.13/fk-actions-for-is_used-functions.sql
200+
1.13/drop-inheritance-notes-translations.sql

sql/modules/Roles.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ SELECT lsmb__grant_perms('base_user', obj, 'SELECT')
19601960
FROM unnest(array['user_listable'::text, 'language',
19611961
'menu_node', 'menu_acl',
19621962
'gifi', 'country', 'taxmodule',
1963-
'parts', 'partsgroup', 'country_tax_form', 'translation',
1963+
'parts', 'partsgroup', 'country_tax_form',
19641964
'business', 'template',
19651965
--###TODO: Add table for advisory rates
19661966
--'exchangerate',

0 commit comments

Comments
 (0)