Rename non-schema-specific roles to SQLT::Role::Foo
Dagfinn Ilmari Mannsåker [Tue, 14 Aug 2012 09:56:53 +0000 (11:56 +0200)]
lib/SQL/Translator/Role/BuildArgs.pm [moved from lib/SQL/Translator/Schema/Role/BuildArgs.pm with 83% similarity]
lib/SQL/Translator/Role/Error.pm [moved from lib/SQL/Translator/Schema/Role/Error.pm with 90% similarity]
lib/SQL/Translator/Schema.pm
lib/SQL/Translator/Schema/Constraint.pm
lib/SQL/Translator/Schema/Field.pm
lib/SQL/Translator/Schema/Index.pm
lib/SQL/Translator/Schema/Procedure.pm
lib/SQL/Translator/Schema/Table.pm
lib/SQL/Translator/Schema/Trigger.pm
lib/SQL/Translator/Schema/View.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 (file)
@@ -1,4 +1,4 @@
-package SQL::Translator::Schema::Role::BuildArgs;
+package SQL::Translator::Role::BuildArgs;
 use Moo::Role;
 
 around BUILDARGS => sub {
similarity index 90%
rename from lib/SQL/Translator/Schema/Role/Error.pm
rename to lib/SQL/Translator/Role/Error.pm
index 5be21cd..f8aab10 100644 (file)
@@ -1,4 +1,4 @@
-package SQL::Translator::Schema::Role::Error;
+package SQL::Translator::Role::Error;
 use Moo::Role;
 
 has error => (is => 'rw', default => sub { '' });
index de48413..d05ebd0 100644 (file)
@@ -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
 );
 
index be70221..5adb2ed 100644 (file)
@@ -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
 );
 
index 48fac66..8e4a0cb 100644 (file)
@@ -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
 );
 
index 695f10f..22d194d 100644 (file)
@@ -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
 );
 
index 35cb738..8624a5d 100644 (file)
@@ -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
 );
 
index 71d7bd2..3712306 100644 (file)
@@ -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
 );
 
index ebd97c9..ae2d951 100644 (file)
@@ -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
 );
 
index b33c160..2f51288 100644 (file)
@@ -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
 );