~yerinalexey/gobin

bd11785bc2e7db79dc215dbf67bcd58d7ab3f266 — Alexey Yerin 11 months ago 4dc2fdf
perf(migrate): select only name for migrations
1 files changed, 2 insertions(+), 3 deletions(-)

M gobin-migrate
M gobin-migrate => gobin-migrate +2 -3
@@ 77,9 77,8 @@ create table if not exists _gobin_migrations (
  created_at timestamp default now()
);' 2>/dev/null >/dev/null

migrations="$(run_sql --csv -c 'select * from _gobin_migrations;' | \
  tail -n +2 | \
  awk -F',' '{ print $1 }')"
migrations="$(run_sql --csv -c 'select name from _gobin_migrations;' | \
  tail -n +2)"

case "$1" in
  apply)