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

custom data type + schema updated #259

Closed
jjbier opened this issue Feb 3, 2014 · 9 comments
Closed

custom data type + schema updated #259

jjbier opened this issue Feb 3, 2014 · 9 comments
Assignees

Comments

@jjbier
Copy link

jjbier commented Feb 3, 2014

I have created a custom data type "timestamp" but whe exec
"php app/console d:s:u --force" this comand reponse all time

Updating database schema...
Database schema updated successfully! "17" queries were executed

Can you help me?

@guilhermeblanco
Copy link
Member

I think we require WAY more information than that.
For example, run your console command again with --dump-sql, together with your Type code on a Gist. That way, we can understand the problem and investigate if this is an issue of DBAL or your own code.
Here we track deficiencies of DoctrineBundle, not DBAL ones.

@jjbier
Copy link
Author

jjbier commented Feb 10, 2014

Sorry for late answer,

This error is how Level "warning"

The command "php app/console d:s:u --force" run correctly ,

But If I do not change the schema, and I run the command again this send:
"Database schema updated successfully! "17" queries were executed "

But It really does not change anything in the database.

@stof
Copy link
Member

stof commented Feb 26, 2014

Well, the dumped SQL does not seem to indicate an issue related to your custom type: it is changing lots of columns, not only the timestamp ones

@fatganz
Copy link

fatganz commented Nov 18, 2014

I also have similar issue - My custom types are always updated.
"doctrine/doctrine-bundle" "version": "v1.2.0",

https://gist.github.com/fatganz/411ca82eec4e3c17de5e

@trsteel88
Copy link

Did anyone ever work out what is causing this issue? I'm getting this on my machine. Seems to be only when a table contains comments (e.g. "(DC2Type:datetime)").

This is only occurring for me in MariaDB 10.2.8. I removed this install and replaced it with MySQL 5.7.19 and it stopped the repetitive updates.

@Majkl578
Copy link
Contributor

Majkl578 commented Sep 7, 2017

@trsteel88 In your case it'd possibly be the same issue as doctrine/orm#6565 / doctrine/dbal#2825?

@belgattitude
Copy link

belgattitude commented Nov 4, 2017

@trsteel88

This is only occurring for me in MariaDB 10.2.8. I removed this install and replaced it with MySQL 5.7.19 and it stopped the repetitive updates.

Should be fixed with doctrine/dbal#2825

@lcobucci
Copy link
Member

doctrine/dbal#2825 has just been merged and it will be released on DBAL v2.7.0, please test if your issue is fixed when using "doctrine/dbal": "2.7.x-dev@dev" and let us know.

@lcobucci lcobucci self-assigned this Nov 19, 2017
@ostrolucky
Copy link
Member

Closing for lack of feedback. I'm sure anyone reading this understands.

@ostrolucky ostrolucky self-assigned this Dec 1, 2019
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

No branches or pull requests

9 participants