14 years agohack to make column auto_increment if it is changed to serial (pg)
Justin Hunter [Mon, 16 Nov 2009 19:54:16 +0000]
hack to make column auto_increment if it is changed to serial (pg)

14 years agoremove unnecessary (Any $)
Justin Hunter [Mon, 16 Nov 2009 19:53:54 +0000]
remove unnecessary (Any $)

14 years ago(Any $) is not necessary anymore for a multi method without any args
Justin Hunter [Sun, 18 Oct 2009 06:23:32 +0000]
(Any $) is not necessary anymore for a multi method without any args

14 years agoup some deps
Justin Hunter [Sun, 18 Oct 2009 06:22:25 +0000]
up some deps

14 years agoif primary key constraint is added, make associated columns primary keys
Justin Hunter [Sun, 18 Oct 2009 06:11:13 +0000]
if primary key constraint is added, make associated columns primary keys

14 years agoadd remove_sequence helper
Justin Hunter [Sun, 18 Oct 2009 06:10:40 +0000]
add remove_sequence helper

14 years agoremove all columns before adding new ones via ->fields or ->columns
Justin Hunter [Sun, 18 Oct 2009 06:09:32 +0000]
remove all columns before adding new ones via ->fields or ->columns

14 years agoadd drop_view
Justin Hunter [Fri, 9 Oct 2009 13:55:52 +0000]
add drop_view

14 years agoadd remove methods for the rest of the objects and add around methods for add_ ...
Justin Hunter [Fri, 9 Oct 2009 13:55:29 +0000]
add remove methods for the rest of the objects and add around methods for add_ & remove_ view (sanity checks)

14 years agoView extends Table
Justin Hunter [Tue, 6 Oct 2009 23:27:24 +0000]
View extends Table

14 years agomove drop_* to Compat, change to around remove_* in lieu of multi method drop_*
Justin Hunter [Tue, 6 Oct 2009 21:45:43 +0000]
move drop_* to Compat, change to around remove_* in lieu of multi method drop_*

14 years agomake "" the default for constraint name
Justin Hunter [Sat, 3 Oct 2009 23:27:50 +0000]
make "" the default for constraint name

14 years agoremove ColumnSize and add MatchType
Justin Hunter [Sat, 3 Oct 2009 16:47:08 +0000]
remove ColumnSize and add MatchType

14 years agocoerce HashRefs to Objects
Justin Hunter [Sat, 3 Oct 2009 04:59:10 +0000]
coerce HashRefs to Objects

14 years agoadd a sensible default for match_type and make type not required
Justin Hunter [Sat, 3 Oct 2009 04:52:39 +0000]
add a sensible default for match_type and make type not required

14 years agofix some typos and add multi methods for drop_index
Justin Hunter [Sat, 3 Oct 2009 04:52:14 +0000]
fix some typos and add multi methods for drop_index

14 years agocoerce Sequence and Constraint into objects
Justin Hunter [Sat, 3 Oct 2009 04:51:51 +0000]
coerce Sequence and Constraint into objects

14 years agoadd ability to remove indexes (indices?)
Justin Hunter [Sat, 3 Oct 2009 04:50:24 +0000]
add ability to remove indexes (indices?)

14 years agoremove/add column to Columns hash upon rename
Justin Hunter [Sat, 3 Oct 2009 04:49:45 +0000]
remove/add column to Columns hash upon rename

14 years agoadd error attribute
Justin Hunter [Sat, 3 Oct 2009 04:49:11 +0000]
add error attribute

14 years agomove backcompat into Compat.pm and apply the role to Object.pm
Justin Hunter [Sat, 3 Oct 2009 04:48:45 +0000]
move backcompat into Compat.pm and apply the role to Object.pm

14 years agoanother test
Justin Hunter [Wed, 30 Sep 2009 19:14:04 +0000]
another test

14 years agofix after removing auto_deref
Justin Hunter [Wed, 30 Sep 2009 19:13:51 +0000]
fix after removing auto_deref

14 years agoset table/schema when added to table/schema, rather then on object construction
Justin Hunter [Wed, 30 Sep 2009 19:13:31 +0000]
set table/schema when added to table/schema, rather then on object construction

14 years agoinitial xml test
Justin Hunter [Wed, 30 Sep 2009 18:51:36 +0000]
initial xml test

14 years agoallow setting of fields (columns) like ->fields('foo,bar') or ->fields([ qw/foo bar/ ])
Justin Hunter [Wed, 30 Sep 2009 00:26:06 +0000]
allow setting of fields (columns) like ->fields('foo,bar') or ->fields([ qw/foo bar/ ])

14 years agobreak out size into length & precision
Justin Hunter [Wed, 30 Sep 2009 00:11:44 +0000]
break out size into length & precision

14 years agocoerce a hash into an Index
Justin Hunter [Tue, 29 Sep 2009 23:54:34 +0000]
coerce a hash into an Index

14 years agono more auto_deref
Justin Hunter [Tue, 29 Sep 2009 23:53:59 +0000]
no more auto_deref

14 years agochange Undef to an empty ArrayRef and remove auto_deref
Justin Hunter [Tue, 29 Sep 2009 23:50:43 +0000]
change Undef to an empty ArrayRef and remove auto_deref

14 years agoremove auto-deref and use the Native::Trait handles
Justin Hunter [Tue, 29 Sep 2009 23:49:34 +0000]
remove auto-deref and use the Native::Trait handles

14 years agoadd backcompat get_field method
Justin Hunter [Sun, 27 Sep 2009 16:13:01 +0000]
add backcompat get_field method

14 years agoschema test changes
Justin Hunter [Fri, 25 Sep 2009 00:05:51 +0000]
schema test changes

14 years agoadd is_valid method and a default for type
Justin Hunter [Thu, 24 Sep 2009 23:58:52 +0000]
add is_valid method and a default for type

14 years agofix extra method
Justin Hunter [Thu, 24 Sep 2009 23:58:20 +0000]
fix extra method

14 years agodata_type is now a timestamp without time zone (no longer truncated)
Justin Hunter [Thu, 24 Sep 2009 23:57:36 +0000]
data_type is now a timestamp without time zone (no longer truncated)

14 years agosome pg grammar fixes
Justin Hunter [Thu, 24 Sep 2009 23:57:11 +0000]
some pg grammar fixes

14 years agoadd coercion for Index
Justin Hunter [Thu, 24 Sep 2009 16:58:45 +0000]
add coercion for Index

14 years agosimple pod coverage test
Justin Hunter [Tue, 22 Sep 2009 01:05:14 +0000]
simple pod coverage test

14 years agoreturn comments/options/extra when they are set
Justin Hunter [Tue, 22 Sep 2009 01:04:59 +0000]
return comments/options/extra when they are set

14 years agoadd overload (stringification) to Column, setup some defaults and make some attrs...
Justin Hunter [Tue, 22 Sep 2009 01:04:14 +0000]
add overload (stringification) to Column, setup some defaults and make some attrs not required

14 years agoadd backcompat methods and some checking on ->name
Justin Hunter [Tue, 22 Sep 2009 01:03:43 +0000]
add backcompat methods and some checking on ->name

14 years agomake is_nullable a Bit and default the column size to [ 0 ]
Justin Hunter [Tue, 22 Sep 2009 01:02:55 +0000]
make is_nullable a Bit and default the column size to [ 0 ]

14 years agowe can get the schema from the translator now
Justin Hunter [Tue, 22 Sep 2009 00:35:59 +0000]
we can get the schema from the translator now

14 years agocoerce a Column from a HashRef via Column->new
Justin Hunter [Tue, 22 Sep 2009 00:35:33 +0000]
coerce a Column from a HashRef via Column->new

14 years agoadd some error checking to add_column and an alias to it
Justin Hunter [Tue, 22 Sep 2009 00:35:02 +0000]
add some error checking to add_column and an alias to it

14 years agoadd ability to drop(remove) a column
Justin Hunter [Tue, 22 Sep 2009 00:33:55 +0000]
add ability to drop(remove) a column

14 years ago->error does not exist and send on the parser|producer_args
Justin Hunter [Sat, 19 Sep 2009 16:48:18 +0000]
->error does not exist and send on the parser|producer_args

14 years agoadd is_valid check and make sure you can't add a table with the same name
Justin Hunter [Sat, 19 Sep 2009 16:47:32 +0000]
add is_valid check and make sure you can't add a table with the same name

14 years agostringify the table object
Justin Hunter [Sat, 19 Sep 2009 16:47:01 +0000]
stringify the table object

14 years agoadd ability to "drop" a table
Justin Hunter [Sat, 19 Sep 2009 16:46:05 +0000]
add ability to "drop" a table

14 years agoadd database attribute
Justin Hunter [Sat, 19 Sep 2009 16:45:48 +0000]
add database attribute

14 years agohelp pod test pass
Justin Hunter [Sat, 19 Sep 2009 16:45:18 +0000]
help pod test pass

14 years agobump required versions
Justin Hunter [Thu, 17 Sep 2009 01:24:30 +0000]
bump required versions

14 years agoanother test
Justin Hunter [Tue, 8 Sep 2009 23:10:02 +0000]
another test

14 years agobetter way to write the translate method
Justin Hunter [Tue, 8 Sep 2009 23:09:49 +0000]
better way to write the translate method

14 years agochange from parse_mysql_version to engine_version
Justin Hunter [Tue, 8 Sep 2009 23:08:14 +0000]
change from parse_mysql_version to engine_version

14 years agoadd specific mysql_parser_version tests to roundtrip
Justin Hunter [Tue, 8 Sep 2009 19:23:26 +0000]
add specific mysql_parser_version tests to roundtrip

14 years agoTODO: fix handling of 'KEY name_idx (name(10))' (partial index)
Justin Hunter [Tue, 8 Sep 2009 19:21:19 +0000]
TODO: fix handling of 'KEY name_idx (name(10))' (partial index)

14 years agodone testing!
Justin Hunter [Tue, 8 Sep 2009 19:18:05 +0000]
done testing!

14 years agochange from parse_mysql_version (in S::T::Utils) to engine_version (function of Trans...
Justin Hunter [Tue, 8 Sep 2009 19:17:53 +0000]
change from parse_mysql_version (in S::T::Utils) to engine_version (function of Translator)

14 years agochange of namespace for Objects (Schema becomes Object)
Justin Hunter [Tue, 8 Sep 2009 19:17:20 +0000]
change of namespace for Objects (Schema becomes Object)

14 years agowe no longer normalize fields (change the size to the maximum allowed) so those parse...
Justin Hunter [Tue, 8 Sep 2009 19:16:52 +0000]
we no longer normalize fields (change the size to the maximum allowed) so those parsed without an explicit size are 0

14 years agochange from parse($tr, $data) to $tr->parse($data)
Justin Hunter [Tue, 8 Sep 2009 19:15:52 +0000]
change from parse($tr, $data) to $tr->parse($data)

14 years agofix up use and don't plan
Justin Hunter [Tue, 8 Sep 2009 19:14:30 +0000]
fix up use and don't plan

14 years agoallow options to be handled
Justin Hunter [Tue, 8 Sep 2009 19:13:50 +0000]
allow options to be handled

14 years agoparse engine version
Justin Hunter [Tue, 8 Sep 2009 19:13:37 +0000]
parse engine version

14 years agofix import issues
Justin Hunter [Tue, 8 Sep 2009 19:13:13 +0000]
fix import issues

14 years agoput former S::T::Utils method parse_mysql_version into Translator.pm as engine_version
Justin Hunter [Tue, 8 Sep 2009 19:12:48 +0000]
put former S::T::Utils method parse_mysql_version into Translator.pm as engine_version

14 years agoadd DEFAULT_PARSER_VERSION constant
Justin Hunter [Tue, 8 Sep 2009 19:12:16 +0000]
add DEFAULT_PARSER_VERSION constant

14 years agodefault_value might also be a ScalarRef
Justin Hunter [Tue, 8 Sep 2009 18:59:54 +0000]
default_value might also be a ScalarRef

14 years agoadd predicates for parser_args/producer_args
Justin Hunter [Tue, 8 Sep 2009 18:59:37 +0000]
add predicates for parser_args/producer_args

14 years agoyank out the normalizing of fields
Justin Hunter [Tue, 8 Sep 2009 16:03:28 +0000]
yank out the normalizing of fields

14 years agocomments must be add_ed not done in the constructor
Justin Hunter [Tue, 8 Sep 2009 16:03:11 +0000]
comments must be add_ed not done in the constructor

14 years agoallow adding of indexes where name is ""
Justin Hunter [Tue, 8 Sep 2009 16:02:44 +0000]
allow adding of indexes where name is ""

14 years agono plan, use done_testing
Justin Hunter [Sat, 5 Sep 2009 17:19:14 +0000]
no plan, use done_testing

14 years agohandle constraints with no name
Justin Hunter [Sat, 5 Sep 2009 17:11:46 +0000]
handle constraints with no name

14 years agocompare the type against predefined constants
Justin Hunter [Sat, 5 Sep 2009 16:48:25 +0000]
compare the type against predefined constants

14 years agomake sure we are comparing against lowercase
Justin Hunter [Sat, 5 Sep 2009 16:48:07 +0000]
make sure we are comparing against lowercase

14 years agoSQLite DDL parser test & data
Justin Hunter [Sat, 5 Sep 2009 16:47:22 +0000]
SQLite DDL parser test & data

14 years agoremove needless comments
Justin Hunter [Sat, 5 Sep 2009 16:46:36 +0000]
remove needless comments

14 years agomake sure reference fields is an arrayref
Justin Hunter [Sat, 5 Sep 2009 16:46:25 +0000]
make sure reference fields is an arrayref

14 years agoneed to sort tables to ensure ordering
Justin Hunter [Sat, 5 Sep 2009 16:45:09 +0000]
need to sort tables to ensure ordering

14 years agoRoundtrip test (more parsers to be added)
Justin Hunter [Sat, 5 Sep 2009 16:35:16 +0000]
Roundtrip test (more parsers to be added)

14 years agoPostgreSQL DDL parser test
Justin Hunter [Sat, 5 Sep 2009 16:34:41 +0000]
PostgreSQL DDL parser test

14 years agofix spelling error
Justin Hunter [Sat, 5 Sep 2009 16:15:55 +0000]
fix spelling error

14 years agoremove needless alias
Justin Hunter [Fri, 4 Sep 2009 22:59:04 +0000]
remove needless alias

14 years agomove method 'aliases' into handles
Justin Hunter [Fri, 4 Sep 2009 18:31:42 +0000]
move method 'aliases' into handles

14 years agobump version requirements
Justin Hunter [Fri, 4 Sep 2009 04:36:54 +0000]
bump version requirements

14 years agomigrate from MXAH to Native::Trait
Justin Hunter [Fri, 4 Sep 2009 04:36:37 +0000]
migrate from MXAH to Native::Trait

14 years agomigrate from MXAH to Native::Trait
Justin Hunter [Fri, 4 Sep 2009 04:35:37 +0000]
migrate from MXAH to Native::Trait

14 years agocomments cannot be set in the constructor, must use external method
Justin Hunter [Thu, 3 Sep 2009 20:01:41 +0000]
comments cannot be set in the constructor, must use external method

14 years agoextra must be set in the form of a hashref
Justin Hunter [Thu, 3 Sep 2009 20:01:19 +0000]
extra must be set in the form of a hashref

14 years agoadd/use new Bit type (0 or 1)
Justin Hunter [Thu, 3 Sep 2009 20:00:42 +0000]
add/use new Bit type (0 or 1)

14 years agofix options and comments methods
Justin Hunter [Thu, 3 Sep 2009 20:00:14 +0000]
fix options and comments methods

14 years agoget PostgreSQL passing roundtrip
Justin Hunter [Thu, 3 Sep 2009 18:05:17 +0000]
get PostgreSQL passing roundtrip

14 years agodefault should be true not false
Justin Hunter [Thu, 3 Sep 2009 17:49:32 +0000]
default should be true not false

14 years agoadd match_type attribute
Justin Hunter [Thu, 3 Sep 2009 06:55:30 +0000]
add match_type attribute

14 years agochange to proper ->new/add_* methods
Justin Hunter [Wed, 26 Aug 2009 05:57:06 +0000]
change to proper ->new/add_* methods

14 years agoremove comments/old warnings
Justin Hunter [Wed, 26 Aug 2009 05:56:03 +0000]
remove comments/old warnings