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

karenc / db-migrator
96%
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 py3-schema-diff
branch: py3-schema-diff
CHANGE BRANCH
x
Reset
  • py3-schema-diff
  • 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
  • repeat-migrations
  • super-user
  • tests
  • travis
  • update-psycopg2
  • update-readme
  • version

pending completion
179

push

travis-ci

karenc
Fix python3 schema diff to output as str

When running migrations in python3, the schema diff is displayed:

```
Running migration 20170810093842 create_a_table
b"--- \n+++ \n@@ -38,20 +38,31 @@\n $$;\n \n \n ALTER FUNCTION public.karen_trigger() OWNER TO travis;\n \n SET default_tablespace = '';\n \n SET default_with_oids = false;\n \n --\n+-- Name: a_table; Type: TABLE; Schema: public; Owner: travis; Tablespace: \n+--\n+\n+CREATE TABLE a_table (\n+    name text\n+);\n+\n+\n+ALTER TABLE a_table OWNER TO travis;\n+\n+--\n -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: travis; Tablespace: \n --\n \n CREATE TABLE schema_migrations (\n     version text NOT NULL,\n     applied timestamp with time zone DEFAULT now()\n );\n \n \n ALTER TABLE schema_migrations OWNER TO travis;\n"
```

`str` and `byte` are mixed together causing the output to be hard to read.

Change schema diff to display as `str`.

1001 of 1041 relevant lines covered (96.16%)

0.96 hits per line

Relevant lines Covered
Build:
Build:
1041 RELEVANT LINES 1001 COVERED LINES
0.96 HITS PER LINE
Source Files on py3-schema-diff
  • Tree
  • 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
179 py3-schema-diff Fix python3 schema diff to output as str When running migrations in python3, the schema diff is displayed: ``` Running migration 20170810093842 create_a_table b"--- \n+++ \n@@ -38,20 +38,31 @@\n $$;\n \n \n ALTER FUNCTION public.karen_trigger() ... push 25 Sep 2017 12:57PM 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