Conversation
|
Fails for the calendar: |
|
Yeah wanted to fail it and now rebasing on #10213 |
06b8f90 to
5a9d517
Compare
MorrisJobke
left a comment
There was a problem hiding this comment.
Tested and works now 👍 Also code makes sense
|
Can't this still do 💥 is people chose a to long prefix? |
Well, that's the case for any table, not only this resource booking ones. If someone selects a 30-char long prefix it will just go 💥 |
| } | ||
|
|
||
| public function ensureOracleIdentifierLengthLimit(Schema $schema) { | ||
| foreach ($schema->getTables() as $table) { |
There was a problem hiding this comment.
1) Test\DB\MigrationsTest::testExecuteStepWithSchemaChange
Invalid argument supplied for foreach()
/drone/src/github.com/nextcloud/server/lib/private/DB/MigrationService.php:464
/drone/src/github.com/nextcloud/server/lib/private/DB/MigrationService.php:451
/drone/src/github.com/nextcloud/server/tests/lib/DB/MigrationsTest.php:120
There was a problem hiding this comment.
Fixed and also added unit tests for all the checks
Well if you use oracle you usually dont change such stuff anyway, because you know the limitations. The current code makes sure it works with a default prefix (3 chars). Anything else is not our business |
|
|
Right, default name on postgres is also not |
|
|
|
Postgres is so annoying, anyway pushed a fix |
|
|
I shall set it up locally for faster debugging this week. |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
a349ee0 to
ef5074a
Compare
|
Fixed and tested locally with postgres, mysql and sqlite |
Ref #10213