Skip to content

Commit f98104d

Browse files
committed
fix indexes
1 parent 3c2aef4 commit f98104d

File tree

4 files changed

+71
-4
lines changed

4 files changed

+71
-4
lines changed

Makefile

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
def:
3+
./build.sh skitch plan
4+
./build.sh skitch package --version 0.0.1
5+
make install
6+
27
up:
38
docker-compose up -d
49

@@ -9,5 +14,21 @@ ssh:
914
docker exec -it postgres /bin/bash
1015

1116
install:
12-
docker exec webinc-postgres /sql-extensions/install.sh
17+
$(MAKE) docker-install || $(MAKE) k8-install
18+
19+
docker-install:
20+
docker exec postgres /sql-extensions/install.sh
21+
22+
k8-install:
23+
$(eval POD_NAME := $(shell kubectl get pods -l app=postgres -n webinc -o jsonpath="{.items[*].metadata.name}"))
24+
kubectl exec -n webinc -it $(POD_NAME) /sql-extensions/install.sh
25+
26+
all:
27+
./build.sh skitch package --version 0.0.1
28+
./build.sh skitch plan
29+
30+
dump:
31+
skitch dump --deps --project dbs --path $(WEBINC_PATH)/services/packages/graphql-server-service/bootstrap/app.sql
1332

33+
deploy:
34+
@echo skitch deploy --recursive --createdb --yes --project dbs --database abcdef

build.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
bak=$(pwd)
4+
5+
for x in $(find packages -name sqitch.plan -exec dirname '{}' \; | grep -v node_modules)
6+
do
7+
echo running \"$@\" inside of $x
8+
cd $x
9+
$@
10+
cd $bak
11+
done
12+
13+
cd $bak

docker-compose.yml

+33
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,36 @@ services:
1313
volumes:
1414
- ./packages:/sql-extensions
1515
- ./node_modules:/sql-modules
16+
# prest:
17+
# container_name: webinc-prest
18+
# image: prest/prest
19+
# links:
20+
# - "postgres:webinc-postgres"
21+
# environment:
22+
# - PREST_DEBUG=true # remove comment for enable DEBUG mode (disable JWT)
23+
# - PREST_PG_HOST=postgres
24+
# - PREST_PG_USER=postgres
25+
# - PREST_PG_PASS=password
26+
# - PREST_PG_DATABASE=webinc-db
27+
# - PREST_PG_PORT=5432
28+
# - PREST_JWT_DEFAULT=false # remove if need jwt
29+
# depends_on:
30+
# - postgres
31+
# ports:
32+
# - "3333:3000"
33+
# postgrest:
34+
# container_name: webinc-postgrest
35+
# image: postgrest/postgrest:latest
36+
# ports:
37+
# - "4444:3000"
38+
# environment:
39+
# # The standard connection URI format, documented at
40+
# # https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
41+
# - PGRST_DB_URI=postgres://postgres:password@postgres:5432/webinc-db
42+
# # The name of which database schema to expose to REST clients
43+
# - PGRST_DB_SCHEMA=collections_public
44+
# # The database role to use when no client authentication is provided
45+
# - PGRST_DB_ANON_ROLE=postgres
46+
# depends_on:
47+
# - postgres
48+
# restart: always

packages/inflection/sqitch.plan

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
schemas/inflection/schema [skitch-extension-utils:@0.0.7 skitch-extension-verify:@0.0.7] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/schema
66
schemas/inflection/procedures/no_consecutive_caps [schemas/inflection/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/no_consecutive_caps
77
schemas/inflection/procedures/pg_slugify [schemas/inflection/schema schemas/inflection/procedures/no_consecutive_caps] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/pg_slugify
8-
schemas/inflection/procedures/underscore [schemas/inflection/schema schemas/inflection/procedures/pg_slugify] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/underscore
8+
schemas/inflection/procedures/no_single_underscores [schemas/inflection/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/no_single_underscores
9+
schemas/inflection/procedures/underscore [schemas/inflection/schema schemas/inflection/procedures/pg_slugify schemas/inflection/procedures/no_single_underscores] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/underscore
910
schemas/inflection/procedures/camel [schemas/inflection/schema schemas/inflection/procedures/underscore] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/camel
1011
schemas/inflection/procedures/dashed [schemas/inflection/schema schemas/inflection/procedures/underscore] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/dashed
1112
schemas/inflection/procedures/pascal [schemas/inflection/schema schemas/inflection/procedures/camel] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/pascal
@@ -16,5 +17,4 @@ schemas/inflection/procedures/should_skip_uncountable [schemas/inflection/schema
1617
schemas/inflection/procedures/singular [schemas/inflection/schema schemas/inflection/tables/inflection_rules/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/singular
1718
schemas/inflection/procedures/slugify [schemas/inflection/schema] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/procedures/slugify
1819
schemas/inflection/tables/inflection_rules/fixtures/1589249334312_fixture [schemas/inflection/schema schemas/inflection/tables/inflection_rules/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/tables/inflection_rules/fixtures/1589249334312_fixture
19-
schemas/inflection/tables/inflection_rules/indexes/inflection_rules_type_idx [schemas/inflection/schema schemas/inflection/tables/inflection_rules/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/tables/inflection_rules/indexes/inflection_rules_type_idx
20-
schemas/inflection/procedures/no_single_underscores [schemas/inflection/schema] 2020-05-19T20:49:46Z Dan Lynch <[email protected]> # add schemas/inflection/procedures/no_single_underscores
20+
schemas/inflection/tables/inflection_rules/indexes/inflection_rules_type_idx [schemas/inflection/schema schemas/inflection/tables/inflection_rules/table] 2017-08-11T08:11:51Z skitch <skitch@5b0c196eeb62> # add schemas/inflection/tables/inflection_rules/indexes/inflection_rules_type_idx

0 commit comments

Comments
 (0)