From f1bc4aa1460367cfe35df90b99252d31bf9f2fda Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 17 Feb 2026 09:11:55 -0800 Subject: [PATCH] Reapply "models: remove legacy template-function-faker plugin row" This reverts commit 773c4a24a54a0dbdece4593e20d15233f33a15a9. --- crates/yaak-models/build.rs | 5 +++++ .../migrations/20260217000000_remove-legacy-faker-plugin.sql | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 crates/yaak-models/build.rs create mode 100644 crates/yaak-models/migrations/20260217000000_remove-legacy-faker-plugin.sql diff --git a/crates/yaak-models/build.rs b/crates/yaak-models/build.rs new file mode 100644 index 00000000..157d24d4 --- /dev/null +++ b/crates/yaak-models/build.rs @@ -0,0 +1,5 @@ +fn main() { + // Migrations are embedded with include_dir!, so trigger rebuilds when SQL files change. + println!("cargo:rerun-if-changed=migrations"); + println!("cargo:rerun-if-changed=blob_migrations"); +} diff --git a/crates/yaak-models/migrations/20260217000000_remove-legacy-faker-plugin.sql b/crates/yaak-models/migrations/20260217000000_remove-legacy-faker-plugin.sql new file mode 100644 index 00000000..fe5b5d93 --- /dev/null +++ b/crates/yaak-models/migrations/20260217000000_remove-legacy-faker-plugin.sql @@ -0,0 +1,3 @@ +-- Remove stale plugin rows left over from the brief period when faker shipped as bundled. +DELETE FROM plugins +WHERE directory LIKE '%template-function-faker';