Skip to content

Commit 236df1e

Browse files
authored
Merge branch 'main' into happy-half-hour
2 parents 844d55a + 7f40d8a commit 236df1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/create-database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: Please set MY_DB_URL with instructions from step above
2424
run: |
2525
echo "Have a look at the end of the output of the previous step to find your one-time link with instructions how to set the database repo secret ..."
26-
sleep 60
26+
sleep 10

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-east --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

ps-create-helper-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function create-db-branch {
1010
pscale branch delete "$DB_NAME" "$BRANCH_NAME" --force --org "$ORG_NAME" 2>/dev/null
1111
fi
1212

13-
pscale branch create "$DB_NAME" "$BRANCH_NAME" --region eu-west --org "$ORG_NAME"
13+
pscale branch create "$DB_NAME" "$BRANCH_NAME" --region us-east --org "$ORG_NAME"
1414
# if branch creation fails, exit with error
1515
if [ $? -ne 0 ]; then
1616
echo "Failed to create branch $BRANCH_NAME for database $DB_NAME"

0 commit comments

Comments
 (0)