...
Do not qualify objects with the database name as PostgreSQL connections represent one database at a time.
For a Single-Schema project, you don’t need to qualify object names with the schema name. If they are not qualified, Datical DB uses the default schema if it is specified.
For a Multi-Schema project, you must qualify object names with the schema name so they get deployed to the correct schema during packaging.
You can use the
schemaName
attribute in themetadata.properties
file to specify the default schema. See Using the metadata.properties file.
PostgreSQL SCM Packaging Patterns
...
Use the specified folder for listed PostgreSQL database operations.
Operation and Object Type | Packaging Folder | Archived |
---|---|---|
CREATE/ALTER/DROP DATABASE LINK |
| Yes |
CREATE/ALTER/DROP FUNCTION |
| Yes |
CREATE/ALTER/DROP INDEX |
| Yes |
CREATE/ALTER/DROP PROCEDURE |
| No |
CREATE/ALTER/DROP QUEUE |
| Yes |
CREATE/ALTER/DROP SEQUENCE |
| Yes |
CREATE/ALTER/DROP SYNONYM |
| Yes |
CREATE/ALTER/DROP TABLE |
| Yes |
CREATE/ALTER/DROP TRIGGER |
| No |
CREATE/ALTER/DROP TYPE |
| Yes |
CREATE/ALTER/DROP VIEW |
| No |
CREATE/ALTER/DROP VIEW INDEX |
| Yes |
RENAME <DB_OBJECT> |
| Yes |
Operation | Packaging Folder | Archived |
---|---|---|
INSERT, UPDATE, DELETE, SELECT | data_dml | Yes |
GRANT, REVOKE | sql_direct | Yes |
Error Handling
Do not put error-handling statements in the SQL scripts.
...