Skip to content

Commit 714415b

Browse files
authored
Longer retries and us-west region
1 parent 95098d4 commit 714415b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create-database.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ unset PLANETSCALE_SERVICE_TOKEN
1111
. set-db-and-org-and-branch-name.sh
1212
. wait-for-branch-readiness.sh
1313

14-
pscale database create "$DB_NAME" --org "$ORG_NAME"
14+
pscale database create "$DB_NAME" --region us-west --org "$ORG_NAME"
1515
# check if DB creation worked
1616
if [ $? -ne 0 ]; then
1717
echo "Failed to create database $DB_NAME"
@@ -27,7 +27,7 @@ if [ "$BRANCH_NAME" != "main" ]; then
2727
fi
2828
fi
2929

30-
wait_for_branch_readiness 7 "$DB_NAME" "$BRANCH_NAME" "$ORG_NAME" 10
30+
wait_for_branch_readiness 10 "$DB_NAME" "$BRANCH_NAME" "$ORG_NAME" 30
3131
echo "CREATE TABLE pixel_matrix (id bigint NOT NULL AUTO_INCREMENT, environment varchar(10) NOT NULL, cell varchar(10) NOT NULL, pixel_data longtext NOT NULL, PRIMARY KEY (id), KEY environment (environment), KEY cell (cell));" | pscale shell $DB_NAME $BRANCH_NAME --org $ORG_NAME
3232
# check whether table creation was successful
3333
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)