Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unecessary constraint on database name #37020

Merged
merged 1 commit into from
Mar 2, 2020
Merged

Conversation

vaab
Copy link
Contributor

@vaab vaab commented Feb 26, 2020

Description

Installation of owncloud prevents database name to have dots inside.

This is not a limitation of database (Postgres and Mysql supports this).

Owncloud is adding an artificial barrier here.

#19390
#20381

Related Issue

This topic was mentioned a few time in issues, but these are locked and closed.

Motivation and Context

I'm installing broad list of services, and none of them have ever decided to enforce their own naming constraints by preventing their installation if we don't follow them. I'm using in my example the domain name of the service as database name (as another reporter of this bug did).

How Has This Been Tested?

Installation works out of the box with dotted domain on postgres on my install... for broader tests, I don't have the time right now.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@update-docs
Copy link

update-docs bot commented Feb 26, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@claassistantio
Copy link

claassistantio commented Feb 26, 2020

CLA assistant check
All committers have signed the CLA.

@phil-davis phil-davis mentioned this pull request Feb 26, 2020
9 tasks
@codecov
Copy link

codecov bot commented Feb 26, 2020

Codecov Report

Merging #37020 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37020   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
+ Complexity    19138    19137    -1     
=========================================
  Files          1270     1270           
  Lines         74912    74910    -2     
  Branches       1329     1329           
=========================================
  Hits          48507    48507           
+ Misses        26014    26012    -2     
  Partials        391      391           
Flag Coverage Δ Complexity Δ
#javascript 54.17% <ø> (ø) 0.00 <ø> (ø) ⬆️
#phpunit 65.93% <ø> (+<0.01%) 19137.00 <ø> (-1.00) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2124cef...9976308. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Feb 26, 2020

Codecov Report

Merging #37020 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37020   +/-   ##
=========================================
  Coverage     64.75%   64.75%           
+ Complexity    19138    19137    -1     
=========================================
  Files          1270     1270           
  Lines         74912    74910    -2     
  Branches       1329     1329           
=========================================
  Hits          48507    48507           
+ Misses        26014    26012    -2     
  Partials        391      391           
Flag Coverage Δ Complexity Δ
#javascript 54.17% <ø> (ø) 0.00 <ø> (ø) ⬆️
#phpunit 65.93% <ø> (+<0.01%) 19137.00 <ø> (-1.00) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2124cef...9976308. Read the comment docs.

@phil-davis
Copy link
Contributor

In PR #37021 I have run acceptance tests with the various different databases and with database name own.cloud.database They all pass except for known existing issues (see that PR for comments). Having a dot in the database name makes no difference.

@phil-davis phil-davis requested a review from micbar February 26, 2020 15:36
@phil-davis
Copy link
Contributor

@micbar can you or someone review this?
IMO it seems OK.

Copy link
Member

@DeepDiver1975 DeepDiver1975 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added loooooong tima ago when mysql had such a limitation. 👍

@micbar micbar merged commit cb8d8cd into owncloud:master Mar 2, 2020
@phil-davis
Copy link
Contributor

PR #37057 adds the changelog for this.

@vaab
Copy link
Contributor Author

vaab commented Mar 25, 2020

Thx for your quick reviews and move on that matter. Continue the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"you may not use dots in the database name" - this is false dot isn't allowed in database names
5 participants