Hey all,
My DEV environment has a table with a physical name different from the PRD environment. I want them to match. This is because I want to do regular PRD database backups and restore that on top of the DEV environment database (both environments have the platform catalog separated from the apps catalog, so the apps catalog is the only one being restored).
In the past I used to be able to change the physical name in the ossys_entity and then publish the module and that was it. But now after I publish the module, the old name is becoming active (attribute Is_Active = 1 in ossys_entity).
Is there another aditional step I have to execute?
regards
Well, I was able to make it work after all.First step, export to an Excel file the content of the entity because you're gonna have to delete it.Next, I had 2 rows in the ossys_entity, so I deleted the one that was inative and changed the physical table name on the one that was active to the correct name.Next, I deleted both tables from the database itself and republished the module who owns the entity. After that, I republished all the modules that consume the entity.All of these steps created an empty table with the correct name. I filled that table with values that I previously saved in the Excel file.
As far as I know, you cannot change the name of an entity that has been automatically generated by Outsystems, but again it depends on where your server is located.
If there is a need that requires DB access, it is better to use a self-manage server, but if you are using OnCloud Outsystems, it is better to have your database installed outside Outsystems so that you can manage it more easily
My system isn't cloud. It's on premises, so I have full control of the database.