no such table: templates #1

Closed
opened 2023-10-18 17:14:33 +03:00 by kmaasrud · 3 comments

I've followed the setup instructions, but when I try to create a new list, I get the following error:

ERROR - 1 no such table: templates in "
ALTER TABLE templates RENAME TO template;"
[1] Error returned from sqlite3 no such table: templates.

This looks like a legacy SQL command to me, or? What do I do to circumvent this? Version is 0.1.1, installed based on the latest commit on main.

I've followed the setup instructions, but when I try to create a new list, I get the following error: ``` ERROR - 1 no such table: templates in " ALTER TABLE templates RENAME TO template;" [1] Error returned from sqlite3 no such table: templates. ``` This looks like a legacy SQL command to me, or? What do I do to circumvent this? Version is `0.1.1`, installed based on the latest commit on `main`.

Hello :)

Did you create the database with this command?

sqlite3 /path/to/db < ./core/src/schema.sql

I just tried it and got the same error as you. The README should be updated, because after adding database migrations the only valid way to create a database right now is to put a non-existing database path in the config and run any cli command; this should create the database.

Hello :) Did you create the database with this command? ```shell sqlite3 /path/to/db < ./core/src/schema.sql ``` I just tried it and got the same error as you. The README should be updated, because after adding database migrations the only valid way to create a database right now is to put a non-existing database path in the config and run any cli command; this should create the database.
Manos Pitsidianakis added the
bug
label 2023-10-18 19:19:19 +03:00

Yes, I did use that command. Deleting the database and running the create-list subcommand worked wonders! Thanks for the quick reply 👍

Yes, I did use that command. Deleting the database and running the `create-list` subcommand worked wonders! Thanks for the quick reply 👍

@kmaasrud If you're on matrix/IRC feel free to join us on #meli oftc.net :)

@kmaasrud If you're on matrix/IRC feel free to join us on #meli oftc.net :)
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: meli/mailpot#1
There is no content yet.