Version Table Result
Arthur Axel 'fREW' Schmidt [Mon, 22 Feb 2010 01:09:01 +0000 (19:09 -0600)]
lib/DBIx/Class/DeploymentHandler/VersionResult.pm [new file with mode: 0644]

diff --git a/lib/DBIx/Class/DeploymentHandler/VersionResult.pm b/lib/DBIx/Class/DeploymentHandler/VersionResult.pm
new file mode 100644 (file)
index 0000000..f5f7663
--- /dev/null
@@ -0,0 +1,32 @@
+package DBIx::Class::DepolymentHandler::VersionResult;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Core';
+
+__PACKAGE__->table('dbix_class_deploymenthandler_versions');
+
+__PACKAGE__->add_columns (
+       installed => {
+               data_type         => 'int',
+               is_auto_increment => 1,
+       },
+       version => {
+               data_type         => 'varchar',
+               size              => '20'
+       },
+       ddl => {
+               data_type         => 'text',
+               is_nullable       => 1,
+       },
+       upgrade_sql => {
+               data_type         => 'text',
+               is_nullable       => 1,
+       },
+);
+
+__PACKAGE__->set_primary_key('installed');
+__PACKAGE__->add_unique_constraint(['version']);
+
+1;