add 'extra' attribute (may move down to Object.pm)
[dbsrgits/SQL-Translator-2.0-ish.git] / lib / SQL / Translator / Object / Schema.pm
index 97458d7..a8bd8cc 100644 (file)
@@ -68,6 +68,12 @@ class SQL::Translator::Object::Schema {
         default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
     );
 
+    has 'extra' => (
+        is => 'rw',
+        isa => HashRef,
+        auto_deref => 1,
+    );
+
     around add_table(Table $table) { $self->$orig($table->name, $table) }
     around add_view(View $view) { $self->$orig($view->name, $view) }
     around add_procedure(Procedure $procedure) { $self->$orig($procedure->name, $procedure) }
@@ -81,5 +87,4 @@ class SQL::Translator::Object::Schema {
     method fields { }
     method on_table { }
     method action { }
-    method extra { }
 }