~sircmpwn/dispatch.sr.ht#41: 
dispatchsrht-initdb script does not initialize tables properly

New way with dispatchsrht-initdb:

createdb srht-dispatch -O srht

dispatchsrht-initdb

With psql:

\c srht-dispatch

\dt

       List of relations

Schema | Name | Type | Owner --------+-----------------+-------+------- public | alembic_version | table | srht public | task | table | srht public | user | table | srht

The old way:

dropdb srht-dispatch

createdb srht-dispatch -O srht

With python3:

from dispatchsrht.app import db

db.create()

shell:

srht-migrate dispatch.sr.ht stamp head && dispatchsrht-migrate stamp head

With psql:

\c srht-dispatch

\dt

     List of relations

Schema | Name | Type | Owner --------+--------------------------+-------+------- public | alembic_version | table | srht public | coresrht_alembic_version | table | srht public | github_authorization | table | srht public | github_commit_to_build | table | srht public | github_pr_to_build | table | srht public | gitlab_authorization | table | srht public | gitlab_commit_to_build | table | srht public | task | table | srht public | user | table | srht

Status
REPORTED
Submitter
~xenrox
Assigned to
No-one
Submitted
1 year, 5 months ago
Updated
1 year, 5 months ago
Labels
No labels applied.