summaryrefslogtreecommitdiff
path: root/bin/dbdef-create
diff options
context:
space:
mode:
authorcvs2git <cvs2git>2002-08-12 06:17:10 +0000
committercvs2git <cvs2git>2002-08-12 06:17:10 +0000
commit160be29a0dc62e79a4fb95d2ab8c0c7e5996760e (patch)
tree94ebadb17321b138fd7bfd9a5c379eec97c5d328 /bin/dbdef-create
parent3ef62a0570055da710328937e7f65dbb2c027c62 (diff)
This commit was manufactured by cvs2svn to create branch 'BESTPRACTICAL'.
Diffstat (limited to 'bin/dbdef-create')
-rwxr-xr-xbin/dbdef-create26
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/dbdef-create b/bin/dbdef-create
deleted file mode 100755
index 0b297b9e6..000000000
--- a/bin/dbdef-create
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/perl -Tw
-#
-# $Id: dbdef-create,v 1.5 2001-08-21 02:43:18 ivan Exp $
-
-use strict;
-use DBI;
-use DBIx::DBSchema;
-use FS::UID qw(adminsuidsetup datasrc driver_name);
-
-my $user = shift or die &usage;
-
-my($dbh)=adminsuidsetup $user;
-
-#needs to match FS::Record
-my($dbdef_file) = "/usr/local/etc/freeside/dbdef.". datasrc;
-
-my $dbdef = new_native DBIx::DBSchema $dbh;
-
-#print $dbdef->pretty_print;
-
-#important
-$dbdef->save($dbdef_file);
-
-sub usage {
- die "Usage:\n dbdef-create user\n";
-}