mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
Merge remote-tracking branch 'upstream/v2' into store-rework-2
This commit is contained in:
@@ -126,7 +126,7 @@ jobs:
|
|||||||
clippy:
|
clippy:
|
||||||
needs: changes
|
needs: changes
|
||||||
if: ${{ needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '' }}
|
if: ${{ needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
target: x86_64-unknown-linux-gnu,
|
target: x86_64-unknown-linux-gnu,
|
||||||
os: ubuntu-latest,
|
os: ubuntu-22.04,
|
||||||
runner: 'cargo',
|
runner: 'cargo',
|
||||||
command: 'test'
|
command: 'test'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,7 +145,9 @@ impl Builder {
|
|||||||
for db in config.preload {
|
for db in config.preload {
|
||||||
let pool = DbPool::connect(&db, app).await?;
|
let pool = DbPool::connect(&db, app).await?;
|
||||||
|
|
||||||
if let Some(migrations) = self.migrations.as_mut().unwrap().remove(&db) {
|
if let Some(migrations) =
|
||||||
|
self.migrations.as_mut().and_then(|mm| mm.remove(&db))
|
||||||
|
{
|
||||||
let migrator = Migrator::new(migrations).await?;
|
let migrator = Migrator::new(migrations).await?;
|
||||||
pool.migrate(&migrator).await?;
|
pool.migrate(&migrator).await?;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user