Compare commits

..

No commits in common. "0db1ffd66797228b6207455996b1ad60e40df996" and "d5899d3a750ae6468d51b77a7bab945e12a2dddf" have entirely different histories.

11 changed files with 0 additions and 80 deletions

View File

@ -1 +0,0 @@
alias sqitchl='SQITCH_PASSWORD=$POSTGRES_PASSWORD sqitch -u $POSTGRES_USER -p $POSTGRES_PORT -h 127.0.0.1'

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
tmp/
# ---> Python # ---> Python
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/

View File

@ -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"

View File

@ -1,8 +0,0 @@
[core]
engine = pg
top_dir = sqitch
# plan_file = sqitch/sqitch.plan
# [engine "pg"]
# target = db:pg:
# registry = sqitch
# client = psql

View File

@ -1,7 +0,0 @@
-- Deploy leetify-data:data-schema to pg
BEGIN;
CREATE SCHEMA data;
COMMIT;

View File

@ -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;

View File

@ -1,7 +0,0 @@
-- Revert leetify-data:data-schema from pg
BEGIN;
DROP SCHEMA data;
COMMIT;

View File

@ -1,8 +0,0 @@
-- Revert leetify-data:profile-meta from pg
BEGIN;
DROP TABLE data.profile_meta;
COMMIT;

View File

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

View File

@ -1,7 +0,0 @@
-- Verify leetify-data:data-schema on pg
BEGIN;
SELECT pg_catalog.has_schema_privilege('data', 'usage');
ROLLBACK;

View File

@ -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;