Created
June 4, 2012 13:51
-
-
Save sitefinitysteve/2868535 to your computer and use it in GitHub Desktop.
Sitefinity Rename Forms Database Table
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
-- the old name of the form | |
declare @oldName nvarchar(30) = 'sf_table_name'; | |
-- the new name of the form | |
declare @newName nvarchar(30) = 'sf_table_name'; | |
-- rename the table with form entries | |
exec sp_rename @oldName, @newName; | |
-- change the form name in the forms description | |
update [sf_form_description] | |
set [nme] = @newName | |
where [nme] = @oldName; | |
-- change the type name of the form in the meta types | |
update [sf_meta_types] | |
set [class_name] = @newName | |
where [class_name] = @oldName; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment