Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patches for NULL table name, on delete cascade to clean up file stora…
…ge from Jim Lynch
- Loading branch information
Dave Bauer
committed
Oct 12, 2009
1 parent
b481dfa
commit 6e10b3b
Showing
5 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
-- Don't use a fake table name, acs_objects supports types that don't have | ||
-- a type specific table | ||
update acs_object_types set | ||
table_name = NULL, | ||
id_column = NULL | ||
where | ||
object_type = 'file_storage_object'; | ||
|
||
begin | ||
content_type.refresh_view('file_storage_object'); | ||
content_type.refresh_trigger('file_storage_object'); | ||
end; | ||
/ | ||
|
||
alter table | ||
fs_root_folders | ||
drop constraint | ||
fs_root_folder_folder_id_fk; | ||
|
||
alter table | ||
fs_root_folders | ||
add constraint | ||
fs_root_folder_folder_id_fk | ||
foreign key (folder_id) | ||
references cr_folders | ||
on delete cascade; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- Don't use a fake table name, acs_objects supports types that don't have | ||
-- a type specific table | ||
update acs_object_types set | ||
table_name = NULL, | ||
id_column = NULL | ||
where | ||
object_type = 'file_storage_object'; | ||
select content_type__refresh_view('file_storage_object'); | ||
select content_type__refresh_trigger('file_storage_object'); | ||
|
||
alter table | ||
fs_root_folders | ||
drop constraint | ||
fs_root_folder_folder_id_fk; | ||
|
||
alter table | ||
fs_root_folders | ||
add constraint | ||
fs_root_folder_folder_id_fk | ||
foreign key (folder_id) | ||
references cr_folders | ||
on delete cascade; |