From: Nicolas Boisselier Date: Tue, 14 Jun 2016 20:21:01 +0000 (+0100) Subject: dbq2 X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=d1afdf7ad339e541e17c7e03830d2ce0334d3bda;p=nb.git dbq2 --- diff --git a/etc/profile.d/dbq.sh b/etc/profile.d/dbq.sh new file mode 100644 index 00000000..f4186152 --- /dev/null +++ b/etc/profile.d/dbq.sh @@ -0,0 +1,11 @@ +dbq2sqlite() { + dbq f=text a=db.dump db.type=sqlite $@ +} + +dbq2mysql() { + dbq f=text a=db.dump db.type=mysql $@ +} + +dbq2pgsql() { + dbq f=text a=db.dump db.type=pgsql $@ +} diff --git a/lib/php/db.php b/lib/php/db.php index b83c9805..d0588dfe 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -596,7 +596,11 @@ class Db extends nb { #if (NB_EOL == "\n") # Change db type - foreach ($tables as $t) { $t->fields(); } + foreach ($tables as $t) { + unset($t->orderby); # uggly need to be change - NB 14.06.16 + $t->fields(); + } + if (self::p('db.type')) { $this->type = self::p('db.type'); }