14 years agouse the coercion instead of creating the object (change back to add_column once aroun...
Justin Hunter [Wed, 9 Dec 2009 18:54:13 +0000]
use the coercion instead of creating the object (change back to add_column once around & coerce work properly)

14 years agofix for primary key adding/checking
Justin Hunter [Wed, 9 Dec 2009 17:18:58 +0000]
fix for primary key adding/checking

14 years agosometimes it would be nice to spell things correctly
Justin Hunter [Fri, 4 Dec 2009 19:43:53 +0000]
sometimes it would be nice to spell things correctly

14 years agoadd drop_trigger (and put things in alphabetical order)
Justin Hunter [Fri, 4 Dec 2009 19:43:12 +0000]
add drop_trigger (and put things in alphabetical order)

14 years agowhile admittedly still broken, much progress has been made
Justin Hunter [Thu, 3 Dec 2009 15:39:11 +0000]
while admittedly still broken, much progress has been made

14 years agofixes for MySQL producer ->options
Justin Hunter [Thu, 3 Dec 2009 15:38:58 +0000]
fixes for MySQL producer ->options

14 years agofix for Pg DDL parser
Justin Hunter [Thu, 3 Dec 2009 15:36:50 +0000]
fix for Pg DDL parser

14 years agomake sure reference_fields/reference_columns is not undef
Justin Hunter [Thu, 3 Dec 2009 15:36:28 +0000]
make sure reference_fields/reference_columns is not undef

14 years agomake these attributes required
Justin Hunter [Tue, 1 Dec 2009 22:47:49 +0000]
make these attributes required

14 years agofix for storing comments using Moose::Autobox and ->flatten
Justin Hunter [Tue, 1 Dec 2009 22:46:54 +0000]
fix for storing comments using Moose::Autobox and ->flatten

14 years agoset the schema on a trigger when it is added
Justin Hunter [Tue, 1 Dec 2009 22:46:01 +0000]
set the schema on a trigger when it is added

14 years agogive Trigger objects access to Schema and Table objects
Justin Hunter [Tue, 1 Dec 2009 22:45:19 +0000]
give Trigger objects access to Schema and Table objects

15 years agocheck and see if column exists before checking if it is a pkey
Justin Hunter [Mon, 16 Nov 2009 19:54:40 +0000]
check and see if column exists before checking if it is a pkey

15 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)

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

15 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

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

15 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

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

15 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

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

15 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)

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

15 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_*

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

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

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

15 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

15 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

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

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

15 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

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

15 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

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

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

15 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

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

15 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/ ])

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

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

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

15 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

15 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

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

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

15 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

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

15 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)

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

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

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

15 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

15 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

15 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

15 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 ]

15 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

15 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

15 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

15 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

15 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

15 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

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

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

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

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

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

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

15 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

15 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

15 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

15 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)

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

15 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)

15 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)

15 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

15 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)

15 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

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

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

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

15 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

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

15 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

15 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

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

15 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

15 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 ""

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

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

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

15 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

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

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

15 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

15 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

15 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)

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

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

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