• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

karenc / db-migrator
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: 1.1.0
DEFAULT BRANCH: master
Repo Added 15 Feb 2016 06:38PM UTC
Files 22
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH update-psycopg2
branch: update-psycopg2
CHANGE BRANCH
x
Reset
  • update-psycopg2
  • 0.1.1
  • 0.1.2
  • 0.1.3
  • 0.1.4
  • 0.2.0
  • 1.0.0
  • 1.0.1
  • 1.0.2
  • 1.1.0
  • close-db-connections
  • context
  • db-config
  • deferred-migrations
  • devops-features
  • fix-list-order
  • fix-tests
  • fix-version
  • list
  • list-by-applied
  • logger
  • mark
  • mark-multiple
  • master
  • migrations-directory-and-context
  • move-logger
  • no-migrations-directory
  • no-schema-no-error
  • py3-schema-diff
  • repeat-migrations
  • super-user
  • tests
  • travis
  • update-readme
  • version

pending completion
171

push

travis-ci

karenc
Update minimum version of psycopg2 required

For the `super_user` context manager, we are doing something like:

```
db_conn = psycopg2.connect('user=tester dbname=testing', user='postgres')
```

This was not supported by psycopg2 < 2.7:

```
Traceback (most recent call last):
  File \"/var/cnx/venvs/publishing/bin/dbmigrator\", line 11, in <module>
    sys.exit(main())
  File \"/var/cnx/venvs/publishing/local/lib/python2.7/site-packages/dbmigrator/cli.py\", line 104, in main
    return args['cmmd'](**args)
  File \"/var/cnx/venvs/publishing/local/lib/python2.7/site-packages/dbmigrator/utils.py\", line 145, in wrapper
    return func(cursor, *args, **kwargs)
  File \"/var/cnx/venvs/publishing/local/lib/python2.7/site-packages/dbmigrator/commands/migrate.py\", line 32, in cli_command
    run_deferred)
  File \"/var/cnx/venvs/publishing/local/lib/python2.7/site-packages/dbmigrator/utils.py\", line 227, in compare_schema
    callback(*args, **kwargs)
  File \"/var/cnx/venvs/publishing/local/lib/python2.7/site-packages/dbmigrator/utils.py\", line 257, in run_migration
    migration.up(cursor)
  File \"../../var/cnx/venvs/publishing/src/cnx-db/cnxdb/migrations/20170912134157_shred-colxml-uuids.py\", line 19, in up
    with super_user() as super_cursor:
  File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__
    return self.gen.next()
  File \"/var/cnx/venvs/publishing/local/lib/python2.7/site-packages/dbmigrator/utils.py\", line 57, in super_user
    user=super_user) as db_conn:
  File \"/var/cnx/venvs/publishing/local/lib/python2.7/site-packages/psycopg2/__init__.py\", line 155, in connect
    % items[0][0])
TypeError: 'user' is an invalid keyword argument when the dsn is specified
```

1011 of 1041 relevant lines covered (97.12%)

1.93 hits per line

Relevant lines Covered
Build:
Build:
1041 RELEVANT LINES 1011 COVERED LINES
1.93 HITS PER LINE
Source Files on update-psycopg2
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
171 update-psycopg2 Update minimum version of psycopg2 required For the `super_user` context manager, we are doing something like: ``` db_conn = psycopg2.connect('user=tester dbname=testing', user='postgres') ``` This was not supported by psycopg2 < 2.7: ``` Trac... push 14 Sep 2017 09:07PM UTC karenc travis-ci pending completion  
See All Builds (186)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc