[Dev] How will the modification of a field in the registry db affect an existing user

2014-09-24 Thread Kalpa Welivitigoda
Hi,

I am working on [1]. Following is the comment on the issue.

When creating tenant having more than 100 characters as domain name, an
Exception thrown both in UI and console, and created tenant is in inactive
mode.

The reason is, eventhough, in UM_TENANT table, column UM_DOMAIN_NAME can
have upto 255 character, in REG_RESOURCE table, column REG_NAME having
restriction of 100 characters.

We can set the REG_NAME to have 255 characters and check whether the domain
name entry exceeds 255 characters in the UI.

My concern is what if a user get a backup of the db of his/her current
version and restore it in a future version of carbon (in which we have
fixed this). I am not sure whether it is likely to happen but if it does we
again have a situation where the management console UI allows to have 255
characters for the domain name but will throw an exception if it is more
than 100.

Is this likely to happen or are there any other restrictions preventing we
modify the field definition?

Your comments are highly appreciated.

[1] https://wso2.org/jira/browse/CARBON-14964

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How will the modification of a field in the registry db affect an existing user

2014-09-24 Thread Udara Liyanage
Hi,

Normally from version to version changes happen to database as well. So
there is verdict that you can use the same db for all version right? You
need to provide migration scripts for db.


Touched, not typed. Erroneous words are a feature, not a typo.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev