secwall
1dcf5cb5aa
Use application_name instead of backend pid for conflict termination.
...
Defect was discovered by Alexander Artemenko (@svetlyak40wt).
If pgmigrate is used with pgbouncer in transaction pooling mode
conflict termination will fail to correctly find pgmigrate connections.
In order to fix this we pass random application_name in dsn for each
connection. We use LIKE-query because connection pooler could append host/port
to original value.
2019-11-02 02:31:24 +03:00
secwall
72d78aeebf
Bump postgres and yapf versions
2019-11-02 00:43:40 +03:00
secwall
37ff280d53
Drop keyserver use from Dockerfile
...
For some reason obtaining repo key periodically fails in travis.
2019-04-14 21:38:11 +03:00
secwall
425609947c
Release 1.0.4
2019-04-14 21:10:19 +03:00
secwall
b22a07e8cb
Fix copyright check
2019-04-14 21:09:35 +03:00
secwall
ed897ffb97
Bump deps versions
2019-04-14 20:55:33 +03:00
secwall
8f109e797d
Upgrade to bionic, drop python 3.5 and add yapf
2018-08-18 22:34:31 +03:00
secwall
676082c3a7
Fix subdir handling in migrations dir
2018-04-03 15:06:38 +03:00
secwall
1305fd109a
Allow using subdirs in migrations folder
2018-04-03 06:03:44 +03:00
secwall
37933c90b6
Use yet another ppa for python 3.6 install in docker
2017-12-28 21:22:09 +03:00
secwall
1c73f3f8cf
Release 1.0.3
2017-12-28 20:55:00 +03:00
secwall
5daeef816c
Log terminated backend pids
2017-12-03 18:03:08 +03:00
secwall
04b098b9c9
Set pg major version only in Dockerfile
2017-12-03 17:19:48 +03:00
secwall
3254c48c07
Fix help for termination_interval
2017-12-03 01:46:47 +03:00
secwall
dc183150b2
Add blocking pids termination
2017-12-03 01:39:30 +03:00
secwall
2ca64cb340
Move to postgresql 10 in tests
2017-12-02 22:13:41 +03:00
secwall
bab18b983d
Add warning message on skipped migration files and document migration file format in tutorial
...
This change is based on proposal by Ernst Haagsman
2017-12-02 22:02:44 +03:00
secwall
76c828baf9
Raise error on missing migrations directory
...
This change is based on proposal by Ernst Haagsman
2017-12-02 21:44:49 +03:00
secwall
671dc3c0c7
Refactor code a bit and add more linters
2017-12-02 21:13:31 +03:00
secwall
bea8e41739
Add testcase on comments in the end of migration file and add avmhawk to AUTHORS
2017-04-06 02:34:18 +03:00
Vladimir Antipin
20633e6dde
Fix migration error with comment at the end of file
2017-04-06 02:33:47 +03:00
secwall
bac96be3e4
Release 1.0.2
2017-04-05 16:10:46 +03:00
secwall
e8c285c245
Fix callbacks in transactional/nontransactional migrations mix on db init
2017-04-05 16:08:43 +03:00
secwall
cc0ae62654
Speed up get_info function a bit
2017-04-03 17:04:46 +03:00
secwall
3318f1beb1
Release 1.0.1
2017-04-01 22:15:19 +03:00
secwall
5bc9166453
Add session setup option
2017-04-01 22:11:47 +03:00
secwall
6a75b43d7c
Fix info command fail without target on initialized database
2017-04-01 15:50:39 +03:00
secwall
a2e7c694fa
Add option to override user in migration meta
2017-04-01 14:20:13 +03:00
secwall
453398c988
Support 'latest' target version
2017-04-01 13:05:14 +03:00
secwall
4c555fab1b
Add info about UTF-8 migrations in docs.
2017-04-01 12:37:51 +03:00
secwall
77d7df4a22
Sort info command output by version.
...
Original idea suggested by Vadim Bahmatovich.
2017-03-31 13:38:56 +03:00
secwall
0745ff44cb
Add python 3.6 env
2017-03-30 17:07:35 +03:00
secwall
ef28bd8a57
Fix bug with python format patterns in migration text
2017-03-30 17:07:15 +03:00
secwall
21849625b2
Fix flake8 checks
2017-02-14 20:26:09 +03:00
Vladimir Borodin
c05d66574f
Updated copyrights
2017-02-06 13:00:04 +03:00
secwall
c87fd121ce
Add overview and badges in README
2016-10-04 13:27:06 +03:00
secwall
d29ccdd3ef
First opensource version - PGmigrate 1.0.0
2016-10-03 18:52:42 +03:00