blinkagent[bot]
d5296a4855
chore: add lint/migrations to detect hardcoded public schema ( #21496 )
...
## Problem
Migration 000401 introduced a hardcoded `public.` schema qualifier which
broke deployments using non-public schemas (see #21493 ). We need to
prevent this from happening again.
## Solution
Adds a new `lint/migrations` Make target that validates database
migrations do not hardcode the `public` schema qualifier. Migrations
should rely on `search_path` instead to support deployments using
non-public schemas.
## Changes
- Added `scripts/check_migrations_schema.sh` - a linter script that
checks for `public.` references in migration files (excluding test
fixtures)
- Added `lint/migrations` target to the Makefile
- Added `lint/migrations` to the main `lint` target so it runs in CI
## Testing
- Verified the linter **fails** on current `main` (which has the
hardcoded `public.` in migration 000401)
- Verified the linter **passes** after applying the fix from #21493
```bash
# On main (fails)
$ make lint/migrations
ERROR: Migrations must not hardcode the 'public' schema. Use unqualified table names instead.
# After fix (passes)
$ make lint/migrations
Migration schema references OK
```
## Depends on
- #21493 must be merged first (or this PR will fail CI until it is)
---------
Signed-off-by: Danny Kopping <danny@coder.com >
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
Co-authored-by: Danny Kopping <danny@coder.com >
2026-01-15 14:17:16 +02:00
..
2026-01-08 15:24:11 +04:00
2025-06-20 13:16:55 -06:00
2025-12-11 16:38:54 +01:00
2026-01-15 12:41:28 +03:00
2025-10-23 15:38:49 -05:00
2024-09-18 21:47:53 +10:00
2026-01-08 15:24:11 +04:00
2026-01-12 18:19:19 -08:00
2023-10-30 19:44:29 +00:00
2025-12-15 13:44:44 -09:00
2026-01-12 18:19:19 -08:00
2025-10-16 01:56:43 +11:00
2026-01-08 15:24:11 +04:00
2026-01-15 14:17:16 +02:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-08-19 10:41:33 +02:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-15 12:41:28 +03:00
2026-01-15 10:26:50 +00:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-06-20 13:16:55 -06:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-15 12:41:28 +03:00
2025-10-15 17:37:37 +00:00
2024-05-13 14:37:51 -04:00
2025-08-16 01:31:00 +10:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-12-15 17:41:47 +00:00
2026-01-09 11:33:34 -06:00
2025-10-23 15:38:49 -05:00
2025-06-17 09:00:32 -08:00
2025-03-18 00:02:47 +01:00
2026-01-12 18:19:19 -08:00
2025-06-20 13:16:55 -06:00
2025-07-08 14:31:05 +00:00
2025-08-07 11:00:31 +10:00
2026-01-08 15:24:11 +04:00
2026-01-09 15:40:26 -07:00
2026-01-08 15:24:11 +04:00
2025-12-14 03:00:03 +00:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-08-22 16:32:35 +10:00
2025-06-20 13:16:55 -06:00
2026-01-09 15:40:26 -07:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-03-31 10:55:44 -04:00
2025-12-15 11:26:41 -06:00
2025-11-17 13:24:12 +00:00
2025-12-29 14:25:14 +00:00
2026-01-08 15:24:11 +04:00
2025-09-26 11:56:34 +02:00
2025-10-24 12:33:56 +01:00
2026-01-09 15:40:26 -07:00
2023-08-18 18:55:43 +00:00
2024-08-01 12:07:19 -05:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-10-27 17:14:16 -06:00
2026-01-08 15:24:11 +04:00
2023-08-18 18:55:43 +00:00
2025-06-20 13:16:55 -06:00
2026-01-08 15:24:11 +04:00
2026-01-15 10:26:50 +00:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2024-02-27 16:33:32 +00:00
2025-06-25 13:03:32 +00:00
2024-06-11 12:22:59 +10:00
2025-04-22 16:21:15 +00:00
2025-06-24 09:14:41 +01:00
2026-01-12 18:19:19 -08:00
2025-12-15 17:41:47 +00:00
2025-09-04 14:28:29 +10:00
2026-01-08 15:24:11 +04:00
2025-12-15 11:26:41 -06:00
2025-05-15 15:32:52 +01:00
2025-06-20 13:16:55 -06:00
2025-06-20 13:16:55 -06:00
2026-01-08 15:24:11 +04:00
2025-08-19 10:41:33 +02:00
2025-08-19 10:41:33 +02:00
2025-06-20 13:16:55 -06:00
2026-01-08 15:24:11 +04:00
2025-03-26 01:56:39 -05:00
2026-01-08 15:24:11 +04:00
2025-09-30 23:54:21 +01:00
2026-01-12 18:19:19 -08:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-15 12:41:28 +03:00
2026-01-15 12:41:28 +03:00
2026-01-15 12:41:28 +03:00
2025-07-03 18:33:47 +02:00
2026-01-15 12:41:28 +03:00
2025-10-22 15:18:42 -05:00
2024-07-25 16:07:53 -05:00
2024-08-28 13:24:28 -05:00
2025-07-15 14:55:34 +10:00
2025-07-15 14:55:34 +10:00
2025-07-28 20:41:49 -05:00
2025-10-02 09:32:40 -05:00
2025-06-24 12:19:19 +02:00
2025-07-28 15:02:26 +01:00
2025-08-21 16:03:34 -04:00
2025-08-21 16:03:34 -04:00
2025-06-20 13:16:55 -06:00
2025-10-06 13:58:37 +02:00
2026-01-08 15:24:11 +04:00
2024-07-25 16:07:53 -05:00
2026-01-12 18:19:19 -08:00
2025-09-26 11:43:32 +02:00
2025-09-26 11:43:32 +02:00
2025-06-20 13:16:55 -06:00
2026-01-08 15:24:11 +04:00
2026-01-12 18:19:19 -08:00
2026-01-09 11:13:16 -06:00
2026-01-12 18:19:19 -08:00
2026-01-09 15:40:26 -07:00
2025-06-20 13:16:55 -06:00
2023-08-18 18:55:43 +00:00
2026-01-12 18:19:19 -08:00
2026-01-09 15:40:26 -07:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-03-27 10:03:53 +00:00
2025-03-27 10:03:53 +00:00
2026-01-12 18:19:19 -08:00
2025-06-18 14:07:53 +00:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-12-22 10:21:39 +04:00
2025-09-03 10:38:42 +04:00
2026-01-08 15:24:11 +04:00
2025-06-20 13:16:55 -06:00
2025-09-26 11:56:34 +02:00
2026-01-08 15:24:11 +04:00
2026-01-12 15:16:59 +01:00
2024-01-18 09:44:05 -06:00
2024-01-18 09:44:05 -06:00
2025-12-15 11:26:41 -06:00
2026-01-08 15:24:11 +04:00
2026-01-14 09:47:50 -08:00
2026-01-14 09:47:50 -08:00
2025-04-16 10:37:09 -06:00
2026-01-08 15:24:11 +04:00