-
Notifications
You must be signed in to change notification settings - Fork 708
Expand file tree
/
Copy pathdiesel-guard.toml
More file actions
35 lines (31 loc) · 1.24 KB
/
diesel-guard.toml
File metadata and controls
35 lines (31 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# diesel-guard configuration file
framework = "diesel"
postgres_version = 16
# Skip checking migrations created before this timestamp
# Useful for retrofitting diesel-guard into existing projects
# Accepted formats: YYYYMMDDHHMMSS, YYYY_MM_DD_HHMMSS, or YYYY-MM-DD-HHMMSS
# Works with any migration directory format regardless of separator style
#
# Examples: Skip all migrations before January 1, 2024
# start_after = "2024_01_01_000000" # underscores
# start_after = "2024-01-01-000000" # dashes
# start_after = "20240101000000" # no separators
start_after = "2026-02-22-000000"
# Whether to check down.sql files in addition to up.sql
# Default: false
#
# Set to true if you want to ensure rollback migrations are also safe
# check_down = false
# Disable specific safety checks
# Valid check names:
# - AddColumnCheck (ADD COLUMN with DEFAULT)
# - AddIndexCheck (CREATE INDEX without CONCURRENTLY)
# - AddNotNullCheck (ALTER COLUMN SET NOT NULL)
# - AlterColumnTypeCheck (ALTER COLUMN TYPE)
# - DropColumnCheck (DROP COLUMN)
#
# Example: Disable checking for ADD COLUMN and DROP COLUMN operations
# disable_checks = ["AddColumnCheck", "DropColumnCheck"]
#
# Default: [] (all checks enabled)
disable_checks = []