Compare commits
No commits in common. "0db1ffd66797228b6207455996b1ad60e40df996" and "d5899d3a750ae6468d51b77a7bab945e12a2dddf" have entirely different histories.
0db1ffd667
...
d5899d3a75
1
.aliases
1
.aliases
|
|
@ -1 +0,0 @@
|
||||||
alias sqitchl='SQITCH_PASSWORD=$POSTGRES_PASSWORD sqitch -u $POSTGRES_USER -p $POSTGRES_PORT -h 127.0.0.1'
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
tmp/
|
|
||||||
# ---> Python
|
# ---> Python
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
services:
|
|
||||||
db:
|
|
||||||
image: postgres
|
|
||||||
volumes:
|
|
||||||
- ./tmp/${COMPOSE_PROJECT_NAME}/db:/var/lib/postgresql/data
|
|
||||||
environment:
|
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
||||||
ports:
|
|
||||||
- "${POSTGRES_PORT}:5432"
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
[core]
|
|
||||||
engine = pg
|
|
||||||
top_dir = sqitch
|
|
||||||
# plan_file = sqitch/sqitch.plan
|
|
||||||
# [engine "pg"]
|
|
||||||
# target = db:pg:
|
|
||||||
# registry = sqitch
|
|
||||||
# client = psql
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
-- Deploy leetify-data:data-schema to pg
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
CREATE SCHEMA data;
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
-- Deploy leetify-data:profile-meta to pg
|
|
||||||
-- requires: data-schema
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS data.profile_meta (
|
|
||||||
steam64Id TEXT,
|
|
||||||
isCollector BOOL,
|
|
||||||
isLeetifyStaff BOOL,
|
|
||||||
isProPlan BOOL,
|
|
||||||
leetifyUserId TEXT,
|
|
||||||
faceitNickname TEXT
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
-- Revert leetify-data:data-schema from pg
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
DROP SCHEMA data;
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
-- Revert leetify-data:profile-meta from pg
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
|
|
||||||
DROP TABLE data.profile_meta;
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
%syntax-version=1.0.0
|
|
||||||
%project=leetify-data
|
|
||||||
|
|
||||||
data-schema 2024-01-25T03:19:31Z andrei <andrei@tower> # adding schema for data
|
|
||||||
profile-meta [data-schema] 2024-01-25T03:28:08Z andrei <andrei@tower> # add table for profile metadata
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
-- Verify leetify-data:data-schema on pg
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
SELECT pg_catalog.has_schema_privilege('data', 'usage');
|
|
||||||
|
|
||||||
ROLLBACK;
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
-- Verify leetify-data:profile-meta on pg
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
SELECT steam64Id, isCollector, isLeetifyStaff,
|
|
||||||
isProPlan, leetifyUserId, faceitNickname
|
|
||||||
FROM data.profile_meta
|
|
||||||
WHERE FALSE;
|
|
||||||
|
|
||||||
ROLLBACK;
|
|
||||||
Loading…
Reference in New Issue