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

Support overriding of installed_by user in metadata table #1151

Closed
blimey74 opened this issue Dec 21, 2015 · 2 comments
Closed

Support overriding of installed_by user in metadata table #1151

blimey74 opened this issue Dec 21, 2015 · 2 comments

Comments

@blimey74
Copy link

@blimey74 blimey74 commented Dec 21, 2015

It seems that MySQL 5.6 throws warnings regarding unsafe replication in relation to the USER() function used in Flyway's inserts into the schema_version table. Is it possible to configure the name of the user manually in Flyway to avoid this?

2015-04-16 08:49:02 2319 [Warning] Unsafe statement written to the binary log using statement format since BINL
OG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value
on the slave. Statement: INSERT INTO `mticket_api`.`schema_version` (`version_rank`,`installed_rank`,`version`,
`description`,`type`,`script`,`checksum`,`installed_by`,`execution_time`,`success`) VALUES (8, 8, '201504131204
', 'add index for systemProperties', 'SQL', 'V201504131204__add_index_for_systemProperties.sql', -361359314, SU
BSTRING_INDEX(USER(),'@',1), 88, 0)
@damsy
Copy link

@damsy damsy commented Jan 26, 2017

Is there any plans to fix this? It's creating inconsistent databases, which could cause replication stops..

@axelfontaine axelfontaine changed the title MySQL replication warning on Flyway schema_version update Support overriding of installed_by user in metadata table Feb 7, 2017
axelfontaine added a commit to flyway/flywaydb.org that referenced this issue Feb 7, 2017
@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Feb 7, 2017

A new property installedBy has now been added which allows you to override this.

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

Successfully merging a pull request may close this issue.

None yet
3 participants