aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-04-17 21:20:02 -0400
committerRalph Amissah <ralph@amissah.com>2010-04-17 21:20:02 -0400
commit85eb3805118bc57b866e6c545cbfa8d24c86f626 (patch)
tree22d950d129cb89267caaddcd5a51c06fc60409a9
parentdb_sqltxt, issue with: escaping backslashes (that works for both pgsql & sqli... (diff)
db_create, on processing screen output appropriate display for pgsql & sqlite, minor fix
* previously reported pgsql info for sqlite processing
-rw-r--r--lib/sisu/v2/db_create.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sisu/v2/db_create.rb b/lib/sisu/v2/db_create.rb
index 8ed638dc..1fc00168 100644
--- a/lib/sisu/v2/db_create.rb
+++ b/lib/sisu/v2/db_create.rb
@@ -80,7 +80,9 @@ module SiSU_DB_create
end
def create_db
@env=SiSU_Env::Info_env.new(@opt.fns)
- tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Create PG db:',%{"SiSU_#{@env.path.stub_pwd}"})
+ tell=(@sql_type=='sqlite') \
+ ? SiSU_Screen::Ansi.new(@opt.cmd,'invert','Create Sqlite db tables in:',%{"#{@env.path.output}/sisu_sqlite.db"}) \
+ : SiSU_Screen::Ansi.new(@opt.cmd,'invert','Create PG db tables in:',%{"#{Db[:name_prefix]}#{@env.path.stub_pwd}"})
tell.colorize unless @opt.cmd =~/q/
SiSU_Env::System_call.new.create_pg_db(@env.path.stub_pwd) if @sql_type=='pg' #watch use of path.stub_pwd instead of stub
end