procmail2notmuch: don't run migration code, leave it to server
This commit is contained in:
parent
f84b8fa6c2
commit
0225dbde3a
@ -309,7 +309,6 @@ fn notmuch_from_rules<W: Write>(mut w: W, rules: &[Rule]) -> anyhow::Result<()>
|
|||||||
|
|
||||||
async fn load_sql(dsn: &str, rules: &[Rule]) -> anyhow::Result<()> {
|
async fn load_sql(dsn: &str, rules: &[Rule]) -> anyhow::Result<()> {
|
||||||
let pool = PgPool::connect(dsn).await?;
|
let pool = PgPool::connect(dsn).await?;
|
||||||
sqlx::migrate!("../server/migrations").run(&pool).await?;
|
|
||||||
println!("clearing email_rule table");
|
println!("clearing email_rule table");
|
||||||
sqlx::query!("DELETE FROM email_rule")
|
sqlx::query!("DELETE FROM email_rule")
|
||||||
.execute(&pool)
|
.execute(&pool)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user