Skip to content

Commit c52cd2f

Browse files
authored
chore: update seed file references and concatenate seed SQL into migrations (#119)
- Renamed test_helpers.sql to seed.sql in configuration - Updated script to include seed.sql content instead of test_helpers.sql - Ensured seed data is integrated into migration concatenation process
1 parent 9d02635 commit c52cd2f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkgs/core/supabase/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ major_version = 15
99
[db.seed]
1010
enabled = true
1111
sql_paths = [
12-
"test_helpers.sql",
12+
"seed.sql",
1313
]
1414

1515
[api]
File renamed without changes.

pkgs/edge-worker/scripts/concatenate-migrations.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for f in $(find ../core/supabase/migrations -name '*.sql' | sort); do
1616
done
1717

1818
# And copy the pgflow_tests
19-
echo "-- From file: test_helpers.sql" >> "$target_file"
20-
cat "../core/supabase/test_helpers.sql" >> "$target_file"
19+
echo "-- From file: seed.sql" >> "$target_file"
20+
cat "../core/supabase/seed.sql" >> "$target_file"
2121
echo "" >> "$target_file"
2222
echo "" >> "$target_file"

0 commit comments

Comments
 (0)