12 years agoMerge branch 'people/frew/mega-refactor'
Peter Rabbitson [Sat, 4 Feb 2012 21:06:03 +0000]
Merge branch 'people/frew/mega-refactor'

12 years agomigrate duplicated code into role
Arthur Axel 'fREW' Schmidt [Wed, 25 Jan 2012 02:13:46 +0000]
migrate duplicated code into role

12 years agolazify things
Arthur Axel 'fREW' Schmidt [Wed, 25 Jan 2012 02:02:37 +0000]
lazify things

12 years agobetter
Arthur Axel 'fREW' Schmidt [Tue, 24 Jan 2012 23:47:32 +0000]
better

12 years agomigrate almost all code to Generator::Role::DDL
Arthur Axel 'fREW' Schmidt [Fri, 11 Mar 2011 04:05:20 +0000]
migrate almost all code to Generator::Role::DDL

12 years agoadd unique_constraints_multiple and indices
Arthur Axel 'fREW' Schmidt [Fri, 11 Mar 2011 03:58:25 +0000]
add unique_constraints_multiple and indices

12 years agoadd foreign_key_constraints
Arthur Axel 'fREW' Schmidt [Fri, 11 Mar 2011 03:53:09 +0000]
add foreign_key_constraints

12 years agoadd table_comments
Arthur Axel 'fREW' Schmidt [Fri, 11 Mar 2011 02:53:53 +0000]
add table_comments

12 years agoadd header_comment
Arthur Axel 'fREW' Schmidt [Fri, 11 Mar 2011 02:53:29 +0000]
add header_comment

12 years agoadd drop_tables method
Arthur Axel 'fREW' Schmidt [Fri, 11 Mar 2011 02:44:25 +0000]
add drop_tables method

12 years agorefactor table into more methods
Arthur Axel 'fREW' Schmidt [Fri, 11 Mar 2011 02:44:10 +0000]
refactor table into more methods

12 years agoless accumulators more reduction
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 04:14:01 +0000]
less accumulators more reduction

12 years agoadd remove_table_constraints to future
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 04:11:43 +0000]
add remove_table_constraints to future

12 years agodead
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 04:01:59 +0000]
dead

12 years agomigrate drop_table to future
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 04:01:51 +0000]
migrate drop_table to future

12 years agorearrange pod
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 03:54:29 +0000]
rearrange pod

12 years agodelete dead code
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 03:49:18 +0000]
delete dead code

12 years agomigrate table to Generator::Role::DDL
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 03:49:33 +0000]
migrate table to Generator::Role::DDL

12 years agoless accumulators more reduction
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 03:37:08 +0000]
less accumulators more reduction

12 years agoadd enum_constraint
Arthur Axel 'fREW' Schmidt [Thu, 10 Mar 2011 01:38:11 +0000]
add enum_constraint

12 years agoadd foreign_key_constraint
Arthur Axel 'fREW' Schmidt [Tue, 8 Mar 2011 05:15:48 +0000]
add foreign_key_constraint

12 years agofactor out unique constraints
Arthur Axel 'fREW' Schmidt [Tue, 8 Mar 2011 04:57:01 +0000]
factor out unique constraints

12 years agofactor out some basic constraints
Arthur Axel 'fREW' Schmidt [Tue, 8 Mar 2011 03:59:42 +0000]
factor out some basic constraints

12 years agouse future stuff for SQLite field generation
Arthur Axel 'fREW' Schmidt [Tue, 8 Mar 2011 02:29:55 +0000]
use future stuff for SQLite field generation

12 years agoinitial SQLite Producer object
Arthur Axel 'fREW' Schmidt [Tue, 8 Mar 2011 02:19:03 +0000]
initial SQLite Producer object

12 years agoadd comments, better default handling
Arthur Axel 'fREW' Schmidt [Tue, 8 Mar 2011 02:18:36 +0000]
add comments, better default handling

12 years agouse future stuff for SQL Server field generation
Arthur Axel 'fREW' Schmidt [Tue, 8 Mar 2011 01:16:49 +0000]
use future stuff for SQL Server field generation

12 years agostart of hardcore refactoring
Arthur Axel 'fREW' Schmidt [Sat, 26 Feb 2011 11:04:24 +0000]
start of hardcore refactoring

12 years agofactor quote method out of Generator::Utils
Arthur Axel 'fREW' Schmidt [Tue, 24 Jan 2012 23:27:55 +0000]
factor quote method out of Generator::Utils

12 years agoMove ProducerUtils into the new dir layout
Peter Rabbitson [Sat, 4 Feb 2012 20:46:14 +0000]
Move ProducerUtils into the new dir layout

12 years agoA set of placeholder directories for future refactoring
Peter Rabbitson [Sat, 4 Feb 2012 20:39:35 +0000]
A set of placeholder directories for future refactoring

12 years agoReally fix mysql CURRENT_TIMESTAMP handling (solves RT#65844)
Peter Rabbitson [Wed, 25 Jan 2012 10:47:33 +0000]
Really fix mysql CURRENT_TIMESTAMP handling (solves RT#65844)

12 years agoCorrect SQLite quote-char
Peter Rabbitson [Mon, 23 Jan 2012 09:32:45 +0000]
Correct SQLite quote-char

The original writer of d8cf2279 didn't do his/her homework, and used an
incorrect quote character. Thic compounded with SQLite trying really hard
to guess what one meant made the issue very hard to spot.

http://www.sqlite.org/lang_keywords.html

12 years agoAdd forgotten test skip after removed dependency in 1abbbee1
Peter Rabbitson [Thu, 19 Jan 2012 09:02:56 +0000]
Add forgotten test skip after removed dependency in 1abbbee1

12 years agoForgotten dependency used in bdf60588
Peter Rabbitson [Thu, 19 Jan 2012 09:01:20 +0000]
Forgotten dependency used in bdf60588

12 years agoQuote all dep versions (preserve trailing 0's and whatnot)
Peter Rabbitson [Thu, 19 Jan 2012 09:00:13 +0000]
Quote all dep versions (preserve trailing 0's and whatnot)

12 years agoFix MANIFEST.SKIP (MYMETA fail)
Peter Rabbitson [Wed, 18 Jan 2012 11:47:56 +0000]
Fix MANIFEST.SKIP (MYMETA fail)

12 years agoFix incorrect ordering in test (fails under unstable hash order i.e. 5.8.1)
Peter Rabbitson [Wed, 18 Jan 2012 11:36:08 +0000]
Fix incorrect ordering in test (fails under unstable hash order i.e. 5.8.1)

12 years agoAdd a git mailmap
Peter Rabbitson [Wed, 18 Jan 2012 10:13:24 +0000]
Add a git mailmap

12 years agoDeprecate SQL::Translator::Schema::Graph, undocument as_graph()
Peter Rabbitson [Wed, 18 Jan 2012 08:39:51 +0000]
Deprecate SQL::Translator::Schema::Graph, undocument as_graph()

According to 10f369208 Producer::Turnkey was retired back in 2004. It seems
that the ::Graph::* family exists solely for Turnkey infrastructure support
and as such can be deprecated. This frees us from a very old dependency
Class::MakeMethods (an early MOP attempt, not updated since 2003).

Fwiw Turnkey itself appears to be also dead:
http://sourceforge.net/mailarchive/forum.php?forum_name=turnkey-users

12 years agoPod fixage
Peter Rabbitson [Wed, 18 Jan 2012 07:52:35 +0000]
Pod fixage

12 years agoFix spurious whitespace failures in t/17sqlfxml-producer.t (RT#70786)
Peter Rabbitson [Wed, 18 Jan 2012 07:34:28 +0000]
Fix spurious whitespace failures in t/17sqlfxml-producer.t (RT#70786)

12 years agoAdd forgotten contributors from various patches:
Peter Rabbitson [Wed, 18 Jan 2012 07:14:46 +0000]
Add forgotten contributors from various patches:

Adam Strzelecki - RT#5992
Johan Viklund - RT#44769
Lukas Thiemeier - RT#70734
Maximilian Gass - RT#68912

12 years agoFix for mysql producer drop primary key, refs #62250
Sebatian B. Knapp [Sat, 7 Jan 2012 13:50:42 +0000]
Fix for mysql producer drop primary key, refs #62250

12 years agosqlt-diff arguments parsing reimplemented using Getopt
Jaime Soriano [Sun, 25 Dec 2011 19:56:47 +0000]
sqlt-diff arguments parsing reimplemented using Getopt

12 years agosqlt-diff option to quote names
Jaime Soriano Pastor [Wed, 21 Dec 2011 15:08:10 +0000]
sqlt-diff option to quote names

12 years agoBit size can range from 1 to 64, test added for size greater than one
Jaime Soriano [Sun, 25 Dec 2011 18:37:51 +0000]
Bit size can range from 1 to 64, test added for size greater than one

Extra tests for additions in bc9932bfd

12 years agoChanges for a1afcdb6
Peter Rabbitson [Tue, 17 Jan 2012 13:01:59 +0000]
Changes for a1afcdb6

12 years agoFix ignored option to script/sqlt-diagram (RT#5992)
Peter Rabbitson [Tue, 17 Jan 2012 13:00:52 +0000]
Fix ignored option to script/sqlt-diagram (RT#5992)

12 years agoFix misleading Diagram POD
Peter Rabbitson [Tue, 17 Jan 2012 12:54:02 +0000]
Fix misleading Diagram POD

12 years agoCombined patches from RT#70734 and RT#44769
Peter Rabbitson [Tue, 17 Jan 2012 12:23:42 +0000]
Combined patches from RT#70734 and RT#44769

12 years agofixed typo reported in rt68912
Sebatian B. Knapp [Mon, 26 Dec 2011 20:46:18 +0000]
fixed typo reported in rt68912

12 years agoTab/WS crusade
Peter Rabbitson [Tue, 17 Jan 2012 11:02:22 +0000]
Tab/WS crusade

12 years agoUse precompiled Parse::RecDescent parsers for moar speed
Peter Rabbitson [Mon, 16 Jan 2012 10:12:32 +0000]
Use precompiled Parse::RecDescent parsers for moar speed

Leverage the (hideous but effective) capability of Parse::RecDescent to
precompile concise gramars into multithousand line monsters. Improves
parsing and thus diffing speed considerably, i.e.:

Testing before:
Files=66, Tests=1851, 23 wallclock secs ( 0.38 usr  0.06 sys + 19.96 cusr  1.80 csys = 22.20 CPU)

Testing after:
Files=66, Tests=1858, 17 wallclock secs ( 0.38 usr  0.08 sys + 15.50 cusr  0.74 csys = 16.70 CPU)

A number of cleanups, including grammar fixes when transitioning from
q{} to heredocs. No functional changes at all.

12 years agoSQLT::Parser::PostgreSQL parses table def with default values
Cedric Carree [Tue, 3 Jan 2012 16:53:56 +0000]
SQLT::Parser::PostgreSQL parses table def with default values

Actually the parser used to skip table definition which includes fields with explicitely casted default values
For example, the following field definition was not working (due to the "::text" part)

CREATE TABLE foo (
    bar TEXT DEFAULT 'this is casted default text'::TEXT
);

12 years agoDrop Class::Accessor::Fast in favor of Moo
Peter Rabbitson [Wed, 4 Jan 2012 09:56:44 +0000]
Drop Class::Accessor::Fast in favor of Moo

12 years agoAdd (now passing) test with file from RT#70473
Sebatian B. Knapp [Sat, 10 Dec 2011 14:42:24 +0000]
Add (now passing) test with file from RT#70473

12 years agoChange mysql parser to throw exceptions on unspecified default values (RT#4835)
giftnuss [Thu, 24 Nov 2011 00:13:24 +0000]
Change mysql parser to throw exceptions on unspecified default values (RT#4835)

12 years agoAdd giftnuss to contributors, awesome triage work
Peter Rabbitson [Sun, 25 Dec 2011 15:27:26 +0000]
Add giftnuss to contributors, awesome triage work

12 years agoInteger default sizes are one point smaller if they are unsigned
Jaime Soriano Pastor [Tue, 20 Dec 2011 17:06:35 +0000]
Integer default sizes are one point smaller if they are unsigned

12 years agoName of unique keys are not written if empty
Jaime Soriano Pastor [Wed, 21 Dec 2011 17:16:00 +0000]
Name of unique keys are not written if empty

12 years agoNames accepted (and ignored) as types of primary keys in create tables
Jaime Soriano Pastor [Tue, 20 Dec 2011 15:57:26 +0000]
Names accepted (and ignored) as types of primary keys in create tables

12 years agoMySQL parsing fails if a table is defined more than once in the same file, if not...
Jaime Soriano Pastor [Mon, 14 Nov 2011 10:36:08 +0000]
MySQL parsing fails if a table is defined more than once in the same file, if not, indices are messed up

12 years agoDefault bits and double quoted strings are parsed now
Jaime Soriano Pastor [Thu, 10 Nov 2011 18:49:17 +0000]
Default bits and double quoted strings are parsed now

12 years agopatch from rt67989 applied, changes dependency from Digest::SHA1 to Digest::SHA
Peter Rabbitson [Sun, 25 Dec 2011 08:31:05 +0000]
patch from rt67989 applied, changes dependency from Digest::SHA1 to Digest::SHA

12 years agoquote SQLite identifiers
Arthur Axel 'fREW' Schmidt [Thu, 14 Jul 2011 15:51:54 +0000]
quote SQLite identifiers

12 years agobetter error messages for the SQLite parser
Arthur Axel 'fREW' Schmidt [Thu, 14 Jul 2011 15:40:27 +0000]
better error messages for the SQLite parser

12 years agoAdd trigger support to PostgreSQL producer and parser (including trigger scope)
Aaron Schrab [Tue, 10 May 2011 22:15:26 +0000]
Add trigger support to PostgreSQL producer and parser (including trigger scope)

PostgreSQL triggers can be fired either once for a statement (the
default), or for each row affected by the statement.  Add support to
declare which type of trigger should is wanted by setting the "scope" of
the trigger.

12 years agoAvoid warning about exiting sub with next
Aaron Schrab [Thu, 12 May 2011 17:43:27 +0000]
Avoid warning about exiting sub with next

12 years agoFix POD for Schema::Index::type method
Aaron Schrab [Thu, 12 May 2011 16:05:13 +0000]
Fix POD for Schema::Index::type method

Had some lingering text copied from doc for options method.

12 years agofix doc typo
Michal Jurosz [Thu, 28 Apr 2011 07:03:24 +0000]
fix doc typo

12 years agoour > use vars
Arthur Axel 'fREW' Schmidt [Sat, 26 Feb 2011 08:14:48 +0000]
our > use vars

12 years agouse warnings
Arthur Axel 'fREW' Schmidt [Sat, 26 Feb 2011 07:17:23 +0000]
use warnings

12 years agoremove commented copyright
Arthur Axel 'fREW' Schmidt [Sat, 26 Feb 2011 06:25:12 +0000]
remove commented copyright

12 years agotake out duplicate docs
Arthur Axel 'fREW' Schmidt [Sat, 26 Feb 2011 06:07:38 +0000]
take out duplicate docs

12 years agoWhitespace
Arthur Axel 'fREW' Schmidt [Sat, 26 Feb 2011 06:07:19 +0000]
Whitespace

12 years agoHandle on_delete => 'restrict' in Producer::Oracle
Robert Bohne [Tue, 19 Jul 2011 12:32:00 +0000]
Handle on_delete => 'restrict' in Producer::Oracle

12 years agoCall ->on_delete & ->on_update in SCALAR context not in LIST context
Robert Bohne [Tue, 19 Jul 2011 12:29:53 +0000]
Call ->on_delete & ->on_update in SCALAR context not in LIST context

12 years agoadded kaitlyn's patch for mysql->sqlite translation
Devin Austin [Tue, 7 Jun 2011 18:07:30 +0000]
added kaitlyn's patch for mysql->sqlite translation

12 years agobinmode STDOUT to not generate garbage in a UTF-8 environment (bug #71399)
Lukas Mai [Sun, 2 Oct 2011 12:07:57 +0000]
binmode STDOUT to not generate garbage in a UTF-8 environment (bug #71399)

12 years agoimage is returned, not written w/o out_file (bug #71398)
Lukas Mai [Sun, 2 Oct 2011 12:02:57 +0000]
image is returned, not written w/o out_file (bug #71398)

12 years agogitignoring
Peter Rabbitson [Sat, 24 Dec 2011 05:37:21 +0000]
gitignoring

12 years agoadded a working mechanism for naming foreign keys
Andreas 'ac0v' Specht [Wed, 6 Apr 2011 19:32:46 +0000]
added a working mechanism for naming foreign keys

12 years agofixed alter_drop_constraint for foreign keys and applying multiple changes via alter_...
Andreas 'ac0v' Specht [Wed, 6 Apr 2011 18:20:02 +0000]
fixed alter_drop_constraint for foreign keys and applying multiple changes via alter_field to a column in Postgres Producer

12 years agoget Postgres table and column descriptions
Cedric Carree [Tue, 22 Nov 2011 11:34:27 +0000]
get Postgres table and column descriptions

patch submitted by Andrew Pam

12 years agoFix index issue in Parser::DBI::PostgreSQL
Cedric Carree [Tue, 22 Nov 2011 10:15:10 +0000]
Fix index issue in Parser::DBI::PostgreSQL

pg_index.indkey does not necessaraly matches the id of the columns_name array. It happens when a column is dropped after the table was created.

12 years agoPatch to get correct SQL data types from Postgres
Cedric Carree [Tue, 22 Nov 2011 09:55:53 +0000]
Patch to get correct SQL data types from  Postgres

Patch submitted by Andrew Pam

12 years agoCreate unit test for ::Parser::DBI::PostgreSQL, fix parser namespace lookup
Cedric Carree [Thu, 17 Nov 2011 11:00:10 +0000]
Create unit test for ::Parser::DBI::PostgreSQL, fix parser namespace lookup

13 years agoRelease 0.11010 v0.11010
Amiri Barksdale at Home [Wed, 5 Oct 2011 15:40:55 +0000]
Release 0.11010

13 years agoAdd test for DROP VIEW IF EXISTS
Amiri Barksdale at Home [Wed, 5 Oct 2011 16:34:56 +0000]
Add test for DROP VIEW IF EXISTS

13 years agoFix CREATE VIEW syntax.
Amiri Barksdale at Home [Wed, 4 May 2011 18:58:59 +0000]
Fix CREATE VIEW syntax.

13 years agoAdd geiststeufel to the AUTHORs list v0.11009
Jess Robinson [Fri, 2 Sep 2011 12:23:33 +0000]
Add geiststeufel to the AUTHORs list

13 years agoUpdate to version 0.011009
Jess Robinson [Fri, 2 Sep 2011 12:18:16 +0000]
Update to version 0.011009

13 years agotest quoted for mysql
Vincent Bachelier [Fri, 2 Sep 2011 09:32:21 +0000]
test quoted for mysql

13 years agoquote properly all table name
Vincent Bachelier [Thu, 1 Sep 2011 15:30:26 +0000]
quote properly all table name

13 years agoadd quoted reference to check if the table name contain a full declaration, it quote...
Geistteufel [Wed, 31 Aug 2011 13:50:03 +0000]
add quoted reference to check if the table name contain a full declaration, it quote it properly

13 years agoquote reference_table
Geistteufel [Wed, 31 Aug 2011 13:39:33 +0000]
quote reference_table

13 years agoRelease 0.11008 v0.11008
Arthur Axel 'fREW' Schmidt [Wed, 4 May 2011 14:56:46 +0000]
Release 0.11008

13 years agoignore vim swap files
Arthur Axel 'fREW' Schmidt [Mon, 2 May 2011 23:26:24 +0000]
ignore vim swap files

13 years agorename Shim to ProducerUtils for accuracy
Arthur Axel 'fREW' Schmidt [Mon, 2 May 2011 23:25:03 +0000]
rename Shim to ProducerUtils for accuracy