Diesel migration run failed for postgresql at the first beginning

Viewed 149

Following diesel.rs quickstart, got error:

#] diesel migration run
Running migration 2022-01-13-151140_create_posts
Executing migration script /Users/u/p/migrations/2022-01-13-151140_create_posts/up.sql
Failed with: Received an empty query

diesel --version

diesel 1.4.1

rustc --version

rustc 1.57.0 (f1edd0429 2021-11-29)

psql --version

psql (PostgreSQL) 14.1

macOS 12.1

1 Answers

This is a sign that the sql file you edit is not in the right migration folder.

Related