How to delete a custom field in an Apple iCloud development database? - icloud

I am trying to delete a custom field ("prefix") in an Apple iCloud development database. When I go to delete the field in the iCloud Dashboard, the red delete button is inactive.
The schema has been deployed to a production environment, but it is not being used nor is there any data in it. If necessary, I can delete/remove the production schema. How can I delete this field (or how can I delete the production environment?). I do NOT what to lose the data in the development database.

Related

Unable to delete Consent Purposes

I'm trying to delete a consent purpose that I created. I understand that I cannot delete a consent purpose if there are users associated with it.
I have already deleted all the users from the database, but when I print all the consents with the REST API there is a register of a user (but the database is empty).
How can I delete the user record that no longer exists in the database but is still related to consent?
How can I clean all the data related with the consents?
How can I revoke all the consents?
Am I missing something?
WSO2 IS v5.10.0
WSO2 Doc - https://docs.wso2.com/display/IS590/apidocs/Consent-management-apis/index.html#!/operations#Consent#consentsGet
I have been trying the WSO2 REST API to solve this issue, but without success.
When I try to delete a purpose with the WSO2 REST API - {"code":"CM_00079","message":"Bad Request","description":"Purpose Id: 29 is associated with one or more receipt(s)."}
Here you had to face this issue because of deleting users directly from the database/user store. It's not recommended to delete users directly from the database. If you use user deletion REST API/SOAP API, in addition to clearing user data from the userstore, it will invoke different user deletion pre-listeners/post-listeners and clear out the other associates/bindings to the deleting user which are stored in different tables/different DBs.
Clearing the consent recipient data is such a case and there are many more (eg: deleting the user from assigned roles).
Since you have removed the user directly from DB, the consent associated with the deleted user has not been cleared.
To delete the consent data of the user, clear the records in the following tables stored in Identity DB in the same order(due to foreign key constraints):
CM_SP_PURPOSE_PURPOSE_CAT_ASSC
CM_SP_PURPOSE_PII_CAT_ASSOC
CM_SP_PURPOSE_ASSOC
CM_RECEIPT_SP_ASSOC
CM_RECEIPT
Then try the REST API request to delete the consent purpose.

Oracle APEX copied, not migrated, to another CLOUD and I cannot log in

DB = Oracle 12
APEX = 4.2
We are moving clouds and the PROD version of the DB with the APEX tables was copied and implemented into another cloud.
I have been told the clouds are exactly the same.
When I try and log into APEX via the web page e.g:
Workspace = Internal
User = ADMIN
I cannot get in. I have tried my normal user and password and no success on any of the workspaces
At home I have installed APEX and have half an idea on what to do but I don’t have admin privileges on the DB. So I have to pass on the messages to the DBA.
So far I have asked the DBA to unlock:
APEX_040200
APEX_PUBLIC_USER
On the connections, Im using SQL Developer to migrate around the DB, the Hostname and Servicename have changed.
Would the change in Service and Host cause logging in issues.
Or, am I missing something obvious, is it a complete re-install, is there a procedure that can be run to update things??
Any tips appreciated
Cheers
C
In my defence I am not a DBA.
When I was told the DB was getting copied I assumed I did not need to do anything since all the data should be held in the tables and it would be a simple case of logging in as usual.
Life is never that simple.
So, when I tried to log in I kept getting errors i.e. invalid log in credentials.
Resolution:
1 DBA resets the ADMIN password and supplies me with the details
2 Go to Production and export all the workspaces etc
3 As ADMIN recreate myself in the INTERNAL workspace
4 Log into INTERNAL, as myself not ADMIN, and import the workspaces

Creating App wide and user specific databases with PouchDB

Is it possible to create databases with PouchDB that are available to all users of the App and have databases as well that are tied to specific users?
My simple App is essentially as follows:
The App is for a micro brewery. It contains a list of the brewery's currently available beers. This is the database that needs to be available to all App users
Every user can create a bookmarked list of beers they want to drink and beers they have tried. This is the database that needs to be specific to each user.
If a user is logged in to the App with admin privileges they will be able to add/remove beers to/from the database of beers that is available to all users.
I am using the SuperLogin Node.js server for user authentication and the App is implemented using the ionic 2 framework.
You can create two (or as many as you like) databases with PouchDB, so yes, you can do what you want to do.
The " list of the brewery's currently available beers" database should be on a CouchDB server and PouchDB can access that when the user is online. You can sync that to a PouchDB in the user's web browser if you want but not provide them with any function to write to it.
The "list of beers they want to drink and beers they have tried" database can be in the users web browser only. If you want to let them store that online as well you need to make both a CouchDB user and a database for them.
Check out pouchdb-authentication for more info and look into "Admins", "Members", and "Roles" there and in the CouchDB docs as well.

How are some items in sitecore web database disappearing automatically

We have a strange scenario in our production. Every day we see one of our multisite parent item is deleted from the web database.
Each multisite is region specific and has region language version and default English as fallback version.
we reviewed our items publishable check box, it is set to publishable
our lower environments cannot access the prod master/web databases to overwrite
Reviewed our publish logs on any delete activity- nothing was found there
Delete empty versions setting is true in Sitecore settings
we have set up publish server following the scalability guide
We see sometimes our language definition items are also getting deleted.
Need help as we are not able to think of what is going wrong.
We engaged Sitecore team for support. The issue is with Unicorn Dataprovider that we are using. The Dataprovider is not supposed to make it's way into higher environments as per Unicorn documentation. We removed the provider in Production boxes and everything looks fine now.

Sitecore hide web database from the sitecore desktop

I need to hide the "web" database being displayed in the toolbar(databases) in Sitecore desktop for certain user roles(We don't need these people to give access to web database). How can I do this?
What I did was go into the Core database and hide the Database selector completely (in our case there's no need for them to change databases - we only have Core, Master, Web).
In the Core database, you can go to /sitecore/content/Applications/Desktop/Tray/Database and remove read rights there. I believe what I did was create a new role which removes inheritance there, so if you do have users that need it they can get a different role which explicitly allows it.