-
Notifications
You must be signed in to change notification settings - Fork 0
/
tidbits.txt
31 lines (26 loc) · 988 Bytes
/
tidbits.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
###
Within Alembic, you can modify the migration to include these changes e.g. in your migration file
from alembic import op
import sqlalchemy as sa
def upgrade():
# ...
op.alter_column('downloads', 'size', existing_type=sa.Integer(), type_=sa.BigInteger())
def downgrade():
# ...
op.alter_column('downloads', 'size', existing_type=sa.BigInteger(), type_=sa.Integer())
###
How `modelate` development DB was created:
sudo -u postgres createuser -S -D -R -P modelate # password = M0d3l4t3
sudo -u postgres createdb -O modelate modelate -E utf-8
sudo adduser modelate # password = M0d3l4t3
###
How `modelate` test DB was created:
sudo -u postgres createuser -S -D -R -P modelate_test # password = M0d3l4t3T35T
sudo -u postgres createdb -O modelate_test modelate_test -E utf-8
sudo adduser modelate_test # password = M0d3l4t3T35T
###
Playing with `git`
git remote -v
git remote set-url origin https://ichux@bitbucket.org/ichux/modelate.git
git remote -v
cat .git/config