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

Change authorized domain table name to snake case #19

Merged
merged 4 commits into from
Mar 1, 2024

Conversation

timmess
Copy link
Collaborator

@timmess timmess commented Feb 21, 2024

Q A
Bug fix? no
New feature? no
BC breaks? no
Fixed issue #...
License MIT

@timmess timmess changed the title Change authrorized domain table name to snake case Change authorized domain table name to snake case Feb 21, 2024
@@ -8,6 +8,7 @@
use Sylius\Component\Resource\Model\ResourceInterface;
use Synolia\SyliusAdminOauthPlugin\Repository\AuthorizedDomainRepository;

#[ORM\Table(name: 'authorized_domain')]
Copy link
Member

Choose a reason for hiding this comment

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

We should prefix it with vendor name (synolia_)

@@ -8,6 +8,7 @@
use Sylius\Component\Resource\Model\ResourceInterface;
use Synolia\SyliusAdminOauthPlugin\Repository\AuthorizedDomainRepository;

#[ORM\Table(name: 'synolia_authorized_domain')]
Copy link
Member

Choose a reason for hiding this comment

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

Isn't it a good idea to do this for all attributes? For example, $isEnabled will be isEnabled in the database, won't it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Totally

@timmess timmess force-pushed the hotfix/authorized-domain-table-name branch from b9b0cef to 1b29f6d Compare February 29, 2024 13:31
@oallain
Copy link
Member

oallain commented Feb 29, 2024

You need to upgrade MariaDB

image: 'mariadb:10.4.11'

set
image: 'mariadb:10.11'

Regards,

@oallain oallain merged commit 3422e4f into main Mar 1, 2024
13 checks passed
@oallain oallain deleted the hotfix/authorized-domain-table-name branch March 1, 2024 08:44
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.

3 participants