Uh oh!
There was an error while loading. Please reload this page.
Prevent too long identifier names - #10221
Conversation
MorrisJobke
commented
Jul 13, 2018
Fails for the calendar: |
nickvergessen
commented
Jul 13, 2018
Yeah wanted to fail it and now rebasing on #10213 |
06b8f90 to
5a9d517Compare
MorrisJobke
left a comment
There was a problem hiding this comment.
Tested and works now 👍 Also code makes sense
rullzer
commented
Jul 17, 2018
Can't this still do 💥 is people chose a to long prefix? |
georgehrke
commented
Jul 17, 2018
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
nickvergessen
commented
Jul 18, 2018
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 |
MorrisJobke
commented
Jul 18, 2018
|
nickvergessen
commented
Jul 19, 2018
Right, default name on postgres is also not |
MorrisJobke
commented
Jul 20, 2018
|
nickvergessen
commented
Jul 20, 2018
Postgres is so annoying, anyway pushed a fix |
MorrisJobke
commented
Jul 24, 2018
|
nickvergessen
commented
Jul 24, 2018
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
ef5074aComparenickvergessen
commented
Jul 27, 2018
Fixed and tested locally with postgres, mysql and sqlite |
Ref #10213