cuba-platform / cuba-gradle-plugin

Gradle plugin for building CUBA platform and applications
https://www.cuba-platform.com
Apache License 2.0
15 stars 18 forks source link

Error message when creating mysql database for the first time #119

Closed alexbudarov closed 4 years ago

alexbudarov commented 4 years ago

Environment

Description of the bug or enhancement

See Studio ticket: https://youtrack.cuba-platform.com/issue/STUDIO-7049

Steps:

You see error in the task output:

budarov@budarov-B250M-DS3H:~/projects/testdrop$ gw createDb

> Task :app-core:createDb
[CubaDbCreation] Failed to execute SQL: drop database testdrop;
Error: Can't drop database 'testdrop'; database doesn't exist
Using database URL: jdbc:mysql://localhost/testdrop?useSSL=false&allowMultiQueries=true&serverTimezone=UTC, user: cuba
Executing SQL script: /home/budarov/projects/testdrop/modules/core/build/db/10-cuba/init/mysql/create-db.sql

BUILD SUCCESSFUL in 2s
2 actionable tasks: 1 executed, 1 up-to-date

Although task finishes successfully, IDEA reacts on the error message as something bad has happened.

alexbudarov commented 4 years ago

screenshot: image

IskandarovRost commented 4 years ago

And the same will be for MSSQL and Maria of course. In the Platform version 7.2 the error does not occur

dtsaryov commented 4 years ago

Related to https://github.com/cuba-platform/cuba-gradle-plugin/issues/115