projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
REALLY don't error out trying to create a dbdef file from scratch
[freeside.git]
/
bin
/
dbdef-create
diff --git
a/bin/dbdef-create
b/bin/dbdef-create
index
c977f87
..
2283b53
100755
(executable)
--- a/
bin/dbdef-create
+++ b/
bin/dbdef-create
@@
-1,14
+1,15
@@
#!/usr/bin/perl -Tw
#!/usr/bin/perl -Tw
-#
-# $Id: dbdef-create,v 1.6 2002-09-19 13:34:52 ivan Exp $
use strict;
use DBI;
use strict;
use DBI;
-use DBIx::DBSchema 0.2
1
;
+use DBIx::DBSchema 0.2
6
;
use FS::UID qw(adminsuidsetup datasrc driver_name);
use FS::UID qw(adminsuidsetup datasrc driver_name);
+use FS::Schema;
my $user = shift or die &usage;
my $user = shift or die &usage;
+$FS::Schema::setup_hack = 1;
+$FS::CurrentUser::upgrade_hack = 1;
my($dbh)=adminsuidsetup $user;
#needs to match FS::Record
my($dbh)=adminsuidsetup $user;
#needs to match FS::Record