Skip to content

Commit

Permalink
Remove option for ignoring constraints
Browse files Browse the repository at this point in the history
This should work for all databases now.
  • Loading branch information
JeremyMcCormick committed Sep 26, 2024
1 parent 3546c13 commit 9227584
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/test/create-databases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ fi
# Initialize a variable to track if any command fails
error_occurred=0

# Create databases from YAML files. Drop existing databases since some of
# the schema names are duplicated and also ignore constraints since many
# schemas are missing required indices for FK constraints.
# Create databases from YAML files, dropping existing databases since some
# names are duplicated across files.
for yaml_file in yml/*.yaml; do
echo "Creating database from $yaml_file..."
felis --log-level ERROR create --drop --ignore-constraints "$yaml_file"
felis --log-level ERROR create --drop "$yaml_file"
# Check if the felis command was successful
if [ $? -ne 0 ]; then
echo "Error: Failed to create database from $yaml_file"
Expand Down

0 comments on commit 9227584

Please sign in to comment.