ecamp / ecamp/ecamp3

Migrate job cannot migrate database after restore on devel

Open
#3,900 2 comments 0 reactions 1 assignee Claimed by @BacLuc View on GitHub
agents:ignore Bug
Dominant language
PHP
Stars
156
Forks
72
Avg merge
12h 43m
Merged PRs (30d)
203

Description

```
k logs ecamp3-dev-db-migrate-v4vwk
Waiting for database to be ready...
The database is now ready and reachable
{"message":"User Deprecated: AbstractPostgreSQLDriver::getSchemaManager() is deprecated. Use PostgreSQLPlatform::createSchemaManager() instead. (AbstractPostgreSQLDriver.php:72 called by TracingDriverForV3.php:80, https://github.com/doctrine/dbal/pull/5458, package doctrine/dbal)","context":{"exception":{"class":"ErrorException","message":"User Deprecated: AbstractPostgreSQLDriver::getSchemaManager() is deprecated. Use PostgreSQLPlatform::createSchemaManager() instead. (AbstractPostgreSQLDriver.php:72 called by TracingDriverForV3.php:80, https://github.com/doctrine/dbal/pull/5458, package doctrine/dbal)","code":0,"file":"/srv/api/vendor/doctrine/deprecations/lib/Doctrine/Deprecations/Deprecation.php:210"}},"level":200,"level_name":"INFO","channel":"php","datetime":"2023-10-01T13:32:23.008789+00:00","extra":{}}
{"message":"Error thrown while running command \"doctrine:migrations:migrate --no-interaction\". Message: \"An exception occurred while executing a query: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: no schema has been selected to create in\nLINE 1: CREATE TABLE doctrine_migration_versions (version VARCHAR(19...\n ^\"","context":{"exception":{"class":"Doctrine\\DBAL\\Exception\\SchemaDoesNotExist","message":"An exception occurred while executing a query: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: no schema has been selected to create in\nLINE 1: CREATE TABLE doctrine_migration_versions (version VARCHAR(19...\n ^","code":7,"file":"/srv/api/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:59","previous":{"class":"Doctrine\\DBAL\\Driver\\PDO\\Exception","message":"SQLSTATE[3F000]: Invalid schema name: 7 ERROR: no schema has been selected to create in\nLINE 1: CREATE TABLE doctrine_migration_versions (version VARCHAR(19...\n ^","code":7,"file":"/srv/api/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28","previous":{"class":"PDOException","message":"SQLSTATE[3F000]: Invalid schema name: 7 ERROR: no schema has been selected to create in\nLINE 1: CREATE TABLE doctrine_migration_versions (version VARCHAR(19...\n ^","code":3,"file":"/srv/api/vendor/doctrine/dbal/src/Driver/PDO/Connection.php:33"}}},"command":"doctrine:migrations:migrate --no-interaction","message":"An exception occurred while executing a query: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: no schema has been selected to create in\nLINE 1: CREATE TABLE doctrine_migration_versions (version VARCHAR(19...\n ^"},"level":500,"level_name":"CRITICAL","channel":"console","datetime":"2023-10-01T13:32:23.025012+00:00","extra":{}}
```

Maybe exporting the db without a user is not a good idea, or the dev database is somewhat special.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.