Closed IskandarovRost closed 4 years ago
Try to connect MSSQL as main datastore like described in https://doc.cuba-platform.com/manual-7.2/db_schema_connection.html And launch CreateDb AR: CreateDb drops the database. Then if "JohnDoe" was made DB_Creator and DB_owner, the tables are created in DBO schema
1) PostgreSQL is used 2) No database was created before 3) Define the new database name and 'currentSchema' in connection parameters 4) Launch createDb
5) UpdateDb also fails
Please, also note that when the connection params are application-defined "schema" could be set as separate params for Hikari, (but not sure Studio handles it): https://youtrack.cuba-platform.com/issue/STUDIO-7578
The last problem occurred due to the MixCase schema name. Use double quoting and it works OK:
Environment
Description of the bug or enhancement
1) Database and Scheme with the required names were not created before 2) Setup the createDB task as follows
3) Launch Create Database 4) Launch Create Database once again 5) Manually create "cuba_schema" in the desired database 7) Remove the "cuba_schema" from "postgres" DB 6) Launch Create Database once again
Expected behavior See https://doc.cuba-platform.com/manual-7.2/db_schema_connection.html The documentation does not say that the custom schema is going to be created. Do not know what to do.
Actual behavior The problem is that the database(with the manually created schema) is dropped before creation. And... At the first attempt to create the database:
cuba_schema
is created in the "postgres" databaseAnd the following error occurs
And after the second attempt: