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

Exceptions thrown when running lucky db.migrate (breeze runs fine) #72

Open
abbsi opened this issue Nov 6, 2022 · 0 comments
Open

Exceptions thrown when running lucky db.migrate (breeze runs fine) #72

abbsi opened this issue Nov 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@abbsi
Copy link

abbsi commented Nov 6, 2022

  • Breeze version: main (0.2.0 at 1955e5c)
  • Lucky version: 1.0.0-rc1 (clean at init with no extra shards besides breeze)
  • Crystal: 1.6.0

Running lucky db.migrate after lucky breeze.install throws around 12 exeptions (11 before CreateBreezeTables & 1 before AddMoreDataToSqlStatements migrations)

Breeze runs fine with no issues after migrate.

All expections are with this output:

Unhandled exception in spawn(name: Create Breeze::SaveBreezeSqlStatement): relation "breeze_sql_statements" does not exist (PQ::PQError)
  from lib/pg/src/pq/connection.cr:215:7 in 'handle_error'
  from lib/pg/src/pq/connection.cr:198:7 in 'handle_async_frames'
  from lib/pg/src/pq/connection.cr:174:7 in 'read'
  from lib/pg/src/pq/connection.cr:169:7 in 'read'
  from lib/pg/src/pq/connection.cr:447:31 in 'expect_frame'
  from lib/pg/src/pq/connection.cr:446:5 in 'expect_frame'
  from lib/pg/src/pg/statement.cr:18:5 in 'perform_query'
  from lib/db/src/db/statement.cr:93:9 in 'perform_query_with_rescue'
  from lib/db/src/db/statement.cr:80:7 in 'query:args'
  from lib/db/src/db/query_methods.cr:46:7 in 'query:args'
  from lib/db/src/db/query_methods.cr:61:12 in 'insert'
  from lib/avram/src/avram/save_operation.cr:265:7 in 'insert_or_update'
  from lib/avram/src/avram/save_operation.cr:211:9 in 'save'
  from lib/avram/src/avram/save_operation.cr:237:8 in 'save!'
  from lib/breeze/src/breeze/operations/save_breeze_sql_statement.cr:1:1 in 'create!:breeze_request_id:statement:args:model:elapsed_text'
  from lib/breeze/src/breeze.cr:15:3 in '->'
  from /home/abbsi/.asdf/installs/crystal/1.6.0/share/crystal/src/fiber.cr:146:11 in 'run'
  from /home/abbsi/.asdf/installs/crystal/1.6.0/share/crystal/src/fiber.cr:98:34 in '->'
  from ???
@jwoertink jwoertink added the bug Something isn't working label Nov 6, 2022
@abbsi abbsi changed the title Excepts thrown when running lucky db.migrate (breeze runs fine) Exceptions thrown when running lucky db.migrate (breeze runs fine) Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants