From: Dagfinn Ilmari Mannsåker Date: Tue, 14 Aug 2012 09:56:53 +0000 (+0200) Subject: Rename non-schema-specific roles to SQLT::Role::Foo X-Git-Tag: v0.11013_01~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45595850cc8937473606c3430c5fcbbd4b07a294;p=dbsrgits%2FSQL-Translator.git Rename non-schema-specific roles to SQLT::Role::Foo --- diff --git a/lib/SQL/Translator/Schema/Role/BuildArgs.pm b/lib/SQL/Translator/Role/BuildArgs.pm similarity index 83% rename from lib/SQL/Translator/Schema/Role/BuildArgs.pm rename to lib/SQL/Translator/Role/BuildArgs.pm index 295dffb..bf5a375 100644 --- a/lib/SQL/Translator/Schema/Role/BuildArgs.pm +++ b/lib/SQL/Translator/Role/BuildArgs.pm @@ -1,4 +1,4 @@ -package SQL::Translator::Schema::Role::BuildArgs; +package SQL::Translator::Role::BuildArgs; use Moo::Role; around BUILDARGS => sub { diff --git a/lib/SQL/Translator/Schema/Role/Error.pm b/lib/SQL/Translator/Role/Error.pm similarity index 90% rename from lib/SQL/Translator/Schema/Role/Error.pm rename to lib/SQL/Translator/Role/Error.pm index 5be21cd..f8aab10 100644 --- a/lib/SQL/Translator/Schema/Role/Error.pm +++ b/lib/SQL/Translator/Role/Error.pm @@ -1,4 +1,4 @@ -package SQL::Translator::Schema::Role::Error; +package SQL::Translator::Role::Error; use Moo::Role; has error => (is => 'rw', default => sub { '' }); diff --git a/lib/SQL/Translator/Schema.pm b/lib/SQL/Translator/Schema.pm index de48413..d05ebd0 100644 --- a/lib/SQL/Translator/Schema.pm +++ b/lib/SQL/Translator/Schema.pm @@ -37,8 +37,9 @@ use SQL::Translator::Utils 'parse_list_arg'; use Carp; with qw( + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare ); diff --git a/lib/SQL/Translator/Schema/Constraint.pm b/lib/SQL/Translator/Schema/Constraint.pm index be70221..5adb2ed 100644 --- a/lib/SQL/Translator/Schema/Constraint.pm +++ b/lib/SQL/Translator/Schema/Constraint.pm @@ -30,9 +30,9 @@ use SQL::Translator::Types qw(schema_obj); use List::MoreUtils qw(uniq); with qw( - SQL::Translator::Schema::Role::BuildArgs + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare ); diff --git a/lib/SQL/Translator/Schema/Field.pm b/lib/SQL/Translator/Schema/Field.pm index 48fac66..8e4a0cb 100644 --- a/lib/SQL/Translator/Schema/Field.pm +++ b/lib/SQL/Translator/Schema/Field.pm @@ -28,9 +28,9 @@ use SQL::Translator::Types qw(schema_obj); use SQL::Translator::Utils qw(parse_list_arg ex2err throw); with qw( - SQL::Translator::Schema::Role::BuildArgs + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare ); diff --git a/lib/SQL/Translator/Schema/Index.pm b/lib/SQL/Translator/Schema/Index.pm index 695f10f..22d194d 100644 --- a/lib/SQL/Translator/Schema/Index.pm +++ b/lib/SQL/Translator/Schema/Index.pm @@ -32,9 +32,9 @@ use SQL::Translator::Types qw(schema_obj); use List::MoreUtils qw(uniq); with qw( - SQL::Translator::Schema::Role::BuildArgs + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare ); diff --git a/lib/SQL/Translator/Schema/Procedure.pm b/lib/SQL/Translator/Schema/Procedure.pm index 35cb738..8624a5d 100644 --- a/lib/SQL/Translator/Schema/Procedure.pm +++ b/lib/SQL/Translator/Schema/Procedure.pm @@ -33,9 +33,9 @@ use SQL::Translator::Types qw(schema_obj); use List::MoreUtils qw(uniq); with qw( - SQL::Translator::Schema::Role::BuildArgs + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare ); diff --git a/lib/SQL/Translator/Schema/Table.pm b/lib/SQL/Translator/Schema/Table.pm index 71d7bd2..3712306 100644 --- a/lib/SQL/Translator/Schema/Table.pm +++ b/lib/SQL/Translator/Schema/Table.pm @@ -31,9 +31,9 @@ use Carp::Clan '^SQL::Translator'; use List::Util 'max'; with qw( - SQL::Translator::Schema::Role::BuildArgs + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare ); diff --git a/lib/SQL/Translator/Schema/Trigger.pm b/lib/SQL/Translator/Schema/Trigger.pm index ebd97c9..ae2d951 100644 --- a/lib/SQL/Translator/Schema/Trigger.pm +++ b/lib/SQL/Translator/Schema/Trigger.pm @@ -34,9 +34,9 @@ use SQL::Translator::Types qw(schema_obj); use List::MoreUtils qw(uniq); with qw( - SQL::Translator::Schema::Role::BuildArgs + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare ); diff --git a/lib/SQL/Translator/Schema/View.pm b/lib/SQL/Translator/Schema/View.pm index b33c160..2f51288 100644 --- a/lib/SQL/Translator/Schema/View.pm +++ b/lib/SQL/Translator/Schema/View.pm @@ -29,9 +29,9 @@ use SQL::Translator::Types qw(schema_obj); use List::MoreUtils qw(uniq); with qw( - SQL::Translator::Schema::Role::BuildArgs + SQL::Translator::Role::Error + SQL::Translator::Role::BuildArgs SQL::Translator::Schema::Role::Extra - SQL::Translator::Schema::Role::Error SQL::Translator::Schema::Role::Compare );