mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-06-21 10:31:13 +00:00
1f634c2604
ci/woodpecker/push/02-build-push Pipeline failed
- Modified the autodev state to reflect the current testing phase and details of the new `jetson-e2e` tests. - Enhanced the "How to Test" documentation to provide clearer instructions on the demo replay validation process, including video and tlog alignment steps. - Updated architectural documentation to include the new demo replay operator flow and its dependencies. - Documented the removal of deprecated auto-sync features and clarified the operator-facing UI for replay validation. - Added new entries in the dependencies table for upcoming tasks related to the demo replay flow. These changes improve clarity and usability for operators and developers working with the demo replay system.
16 lines
858 B
Plaintext
16 lines
858 B
Plaintext
---
|
|
description: "SQL and database migration conventions: naming, safety, parameterized queries, indexing, Postgres"
|
|
globs: ["**/*.sql", "**/migrations/**", "**/Migrations/**"]
|
|
---
|
|
# SQL / Migrations
|
|
|
|
- Use lowercase for SQL keywords (or match project convention); snake_case for table/column names
|
|
- Every migration must be reversible (include DOWN/rollback)
|
|
- Never rename tables or columns without explicit confirmation — prefer additive changes
|
|
- Use parameterized queries; never concatenate user input into SQL
|
|
- Add indexes for columns used in WHERE, JOIN, ORDER BY
|
|
- Use transactions for multi-step data changes
|
|
- Include `NOT NULL` constraints by default; explicitly allow `NULL` only when needed
|
|
- Name constraints explicitly: `pk_table`, `fk_table_column`, `idx_table_column`
|
|
- Test migrations against a copy of production schema before applying
|