Commit Graph

11 Commits (main)

Author SHA1 Message Date
Manos Pitsidianakis 7e7d59fb10
core: move build module to build/ subdirectory
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-10-19 10:32:28 +03:00
Manos Pitsidianakis ad63687c22
core/build.rs: set user_version PRAGMA in generated schema.sql
The generated schema did not include the `user_version` which tracks
which migration is the latest one. This made the README.md example of
creating a database manually fail because it would be initialized with a
`user_version` of 0 and then `mailpot` would attempt to apply migrations
to it.

```shell
$ sqlite3 /path/to/db < ./core/src/schema.sql
$ cargo run --bin mpot -- [some command]
ERROR - 1 no such table: templates in "
ALTER TABLE templates RENAME TO template;"
[1] Error returned from sqlite3 no such table: templates.
```

Fixes #1

https://git.meli.delivery/meli/mailpot/issues/1

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-10-19 10:27:31 +03:00
Manos Pitsidianakis e82eb8fe84
workflows: download new sqlite3 version 2023-06-18 19:40:37 +03:00
Manos Pitsidianakis 9b625e7c4c core: implement message filter settings, use them in ArchivedAtLink filter 2023-06-09 16:36:40 +03:00
Manos Pitsidianakis 38ae3798f6 core: add data kind of migrations 2023-06-09 16:36:37 +03:00
Manos Pitsidianakis 657b58c4ae
core: add migration test 2023-05-18 13:57:51 +03:00
Manos Pitsidianakis d5fc2d8e75
core: add database migrations 2023-05-05 15:40:10 +03:00
Manos Pitsidianakis cfd55d3e4a
Tidy up rustdocs 2023-04-25 17:08:30 +03:00
Manos Pitsidianakis 746a89ba52
Run rustfmt with nightly options 2023-04-15 17:32:10 +03:00
Manos Pitsidianakis 15ce1db5c0 core/build.rs: verify than m4 SQL schema output is correct 2022-06-05 13:18:36 +03:00
Manos Pitsidianakis cdae585ee6 Initial commit 2022-05-07 18:17:03 +03:00