Moved to dev@ since this is a dev matter.

I think what unique should be is (APPLICATION_ID, RESOURCE_NAME, ENVIRONMENT).
No point in making RESOURCE_NAME field alone unique. Because an user should
be able to create a resource with same name in a different
environement/stage or different application.

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Jan 8, 2015 at 4:35 PM, Anuruddha Premalal <[email protected]>
wrote:

> Hi,
>
> In creating a datadabse/datasource/databse_user/databse_template we update
> the AF_RESOURCE table(in afdb) with the following parameters.
>
> APPLICATION_ID
> RESOURCE_TYPE
> RESOURCE_NAME
> ENVIRONMENT
> DESCRIPTION
>
> Since duplication should not be allowed in any of the appfactory
> resources, shall we make the RESOURCE_NAME field unique?. This will require
> a data migration for cloud as well.
>
>
> Regards,
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to