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

Error during migration #40

Closed
dantodor opened this issue Feb 10, 2025 · 5 comments
Closed

Error during migration #40

dantodor opened this issue Feb 10, 2025 · 5 comments

Comments

@dantodor
Copy link

I'm getting this:

mix ecto.migrate

21:33:52.458 [info] == Running 20250210142816 Orfeuz.Repo.Migrations.AddPhoenixAnalytics.up/0 forward
Failed to apply migration: Catalog Error: Scalar Function with name "get_current_timestamp" is not in the catalog, but it exists in the core_functions extension.

Please try installing and loading the core_functions extension by running:
INSTALL core_functions;
LOAD core_functions;

Alternatively, consider enabling auto-install and auto-load by running:
SET autoinstall_known_extensions=1;
SET autoload_known_extensions=1;

What am I doing wrong? How can I manually add the recommended functions to the migration?

@Terbium-135
Copy link

Terbium-135 commented Feb 11, 2025

I am seeing the same error while running in production and had to remove phoenix-analytics for now.

I guess it has something to do with a duckdbex update from a day ago but have to investigate further

https://github.com/AlexR2D2/duckdbex

@Terbium-135
Copy link

AlexR2D2/duckdbex#39

@dantodor
Copy link
Author

For the record, it comes indeed from the latest duckdbex version. The solution that worked for me was to pin the version to the previous one, 0.3.7
hth

@lalabuy948
Copy link
Owner

thank you for spotting this! I up for now added exact version to mix. Later on will update properly with newer changes from duckbex.

@Terbium-135
Copy link

Good idea to pin version and thx a lot for all your work!
Really appreciate it

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

3 participants