 EXEC dbo.moveRenameDb 'dbo','IsisSecurityApplicationUser','isissecurity','ApplicationUser'
 EXEC dbo.moveRenameDb 'dbo','IsisSecurityApplicationUserRoles','isissecurity','ApplicationUserRoles'
 EXEC dbo.moveRenameDb 'dbo','IsisUserSetting', 'isissettings','UserSetting'
+
+/**
+* SET User's Application Tenancy
+*/
+UPDATE isissecurity.ApplicationUser SET atPath = '/' WHERE accountType = 'LOCAL' AND atPath IS NULL
+UPDATE isissecurity.ApplicationUser SET atPath = '/ITA' WHERE atPath IS NULL
+
 
 /**
 * Change from DATETIME2 TO DATE

GO
DROP TABLE [dbo].[Tag]
GO
DROP TABLE [dbo].[IsisSettingApplicationSetting]
GO
DROP TABLE [dbo].[PaymentTerm]
GO


/**
* Stored procedure creates column with default and removes default constraint
**/
ALTER PROCEDURE addColumn
(
    @table VARCHAR(255),
    @column VARCHAR(255),
