Permalink
Commits on Jul 3, 2014
Commits on Jun 27, 2014
  1. Merge pull request #95 from shirkey/patch-1

    Query for constraints with table names > 55 chars
    jmafc committed Jun 27, 2014
  2. Issue with table names > 55 chars

    Casting conrelid::regclass::name truncates long table names (> 55 chars) -- casting instead as conrelid::regclass::text fixes the problem.
    shirkey committed Jun 27, 2014
Commits on May 15, 2014
  1. Rework previous solution to sequences owned by quoted tables. Fixes #79.

      * pyrseas/dbobject/__init__.py (split_schema_obj): Revert to previous
        code.
      * pyrseas/dbobject/table.py (Sequence.get_dependent_table): New local
        function split_table() to parse the result from pg_depend.
    jmafc committed May 15, 2014
Commits on May 8, 2014
Commits on May 1, 2014
  1. Merge branch 'r0.7'

    jmafc committed May 1, 2014
Commits on Apr 30, 2014
Commits on Apr 29, 2014
  1. Merge branch 'r0.7'

    jmafc committed Apr 29, 2014
Commits on Apr 2, 2014
  1. Merge branch 'r0.7'

    jmafc committed Apr 2, 2014
Commits on Mar 24, 2014
Commits on Mar 17, 2014
  1. Merge branch 'r0.7'. Fixes #88.

    jmafc committed Mar 17, 2014
  2. Do not alter an existing extension's owner since it is not valid.

    Add a no_owner kwarg to  DbObject.diff_map, such that when its
    value is True it ignores owner comparison, and generation of an
    alter statement.
    
    Refs: perseas/Pyrseas#88
    pau committed with jmafc Mar 15, 2014
Commits on Mar 14, 2014
  1. Merge branch 'r0.7'

    jmafc committed Mar 14, 2014
  2. Merge branch 'r0.7'

    jmafc committed Mar 14, 2014
Commits on Mar 13, 2014
Commits on Mar 11, 2014
  1. Merge branch 'r0.7'

    jmafc committed Mar 11, 2014
Commits on Feb 17, 2014
  1. Merge branch 'r0.7'

    jmafc committed Feb 17, 2014
  2. Yamltodb should quote mixed case constraint names. Fixes #83.

     * pyrseas/dbobject/constraint.py (Constraint.drop,
       CheckConstraint.add, ForeignKey.add): Use quote_id around
       constraint name.
    jmafc committed Feb 17, 2014
Commits on Jan 28, 2014
  1. Sort static data by primary key columns or default order. Fixes #80.

     Based on 27 Jan email to pyrseas-general from Kim Bisgaard,
     editorialized by me.
    
     * pyrseas/dbobject/table.py (Table.data_export): If table has primary
       key, create order_by list using key columns, else use defined order
       of columns.  Use new sql_copy_to to copy data out.
     * pyrseas/lib/dbconn.py (DbConnection.sql_copy_to): New method using
       copy_expert to copy to a file using SQL COPY.
     * tests/dbobject/test_static.py: Add test to verify primary key sorting.
    jmafc committed Jan 28, 2014
Commits on Jan 27, 2014
  1. Merge branch 'r0.7'

    jmafc committed Jan 27, 2014
Commits on Jan 14, 2014
  1. Fix mapping of table with embedded period and associated sequence. Fi…

    …xes #79.
    
     * pyrseas/dbobject/__init__.py (split_schema_obj): If double quotes
       present, remove them first and then split on a quoted period, else
       split on period.
     * tests/dbobject/test_table.py: Add test to verify correct mapping.
    jmafc committed Jan 6, 2014
Commits on Jan 6, 2014
  1. Fix mapping of table with embedded period and associated sequence. Fi…

    …xes #79.
    
     * pyrseas/dbobject/__init__.py (split_schema_obj): If double quotes
       present, remove them first and then split on a quoted period, else
       split on period.
     * tests/dbobject/test_table.py: Add test to verify correct mapping.
    jmafc committed Jan 6, 2014
Commits on Dec 17, 2013
  1. Second submission of support for yamltodb --revert (sequences).

     * pyrseas/dbobject/table.py (seq_max_value, seq_min_value): New
       functions to abstract MAX/MIN value logic.  (Sequence.{create,
       diff_map): Use new functions.
     * tests/dbobject/test_sequence.py: New test group.
    jmafc committed Dec 17, 2013
Commits on Dec 16, 2013
  1. Initial submission of support for yamltodb --revert option.

     * docs/yamltodb.rst: Document new option.
     * pyrseas/database.py (Database.diff_map): If revert option selected,
       swap the top level database objects.
     * pyrseas/dbobject/column.py (Column.diff_map): Check that statistics
       attribute exists before determining what SQL to generate.
     * pyrseas/dbobject/schema.py (SchemaDict.diff_map): Add special case
       for pg_catalog schema.
     * pyrseas/testutils.py (InputMapToSqlTestCase.to_sql): Add revert
       argument and pass it to config_options.
     * pyrseas/yamltodb.py: Add --revert option.
     * tests/dbobject/test_schema.py (SchemaUndoSqlTestCase): New test
       group to verify basic undo processing.
    jmafc committed Dec 16, 2013
Commits on Dec 5, 2013
Commits on Dec 4, 2013
Commits on Dec 2, 2013
Commits on Nov 29, 2013
  1. Merge pull request #78 from court-jus/master

    Encode output using utf-8
    jmafc committed Nov 29, 2013