Commit Graph

12 Commits

Author SHA1 Message Date
Noah S-C
4d76a70fa2
scripts: dont run subshell in for loop (#60611)
For same reason as https://github.com/sourcegraph/sourcegraph/pull/60610, cleaning up the remaining scripts

## Test plan

https://stackoverflow.com/questions/44014857/function-invocation-in-for-loop-does-not-fail-even-with-set-e
2024-02-19 14:48:33 +00:00
Eric Fritz
972e0751a7
dev/deb: Remove scripts replaced by sg (#28767) 2021-12-08 23:22:00 +00:00
Stefan Hengl
c61b0f1a7b
all: /bin/bash -> /usr/bin/env bash (#23673)
I ran into issues setting up Sourcegraph on NixOS, because NixOS, like
some other distros, doesn't have a /bin/bash. We already use /usr/bin/env
in many of our scripts, so this improves consistency, too.
2021-08-06 12:02:43 +02:00
flying-robot
4e7c93b3c6
Ignore system psqlrc and local .psqlrc when dropping test databases (#22315)
Depending on your particular .psqlrc customizations, omitting the -X
flag from psql invocations may include formatting details in the output:

  # psql -c 'copy (select 1) to stdout'
  Border style is 2.
  Line style is unicode.
  1
  Time: 0.553 ms

That disrupts downstream tools like grep. The -X flag skips reading the
system psqlrc and local .psqlrc file, which fixes the issue:

  # psql -Xc 'copy (select 1) to stdout'
  1
2021-06-23 09:21:55 -04:00
Eric Fritz
2e72f1fd0e
database: Require Postgres 12 (#19424) 2021-03-30 22:35:21 +00:00
Erik Seliger
b50a1fe27f
Finish work inlining most assets (#19279)
There were a couple more things to be inlined and a few references in docs which aren't up to date anymore.
2021-03-22 23:41:13 +01:00
Keegan Carruthers-Smith
32f8a023dd
migrations: use go1.16 embed directive instead of go-bindata (#19256)
We can remove the generate step, and instead rely on the go compiler to
embed the migrations. Additionally I took the opportunity to remove some
copy-pasta code and just have one migrations package.

Co-authored-by: Erik Seliger <erikseliger@me.com>
2021-03-18 14:13:28 +02:00
Adam Harvey
b1492aecfa
db: add a dev script to renumber migrations (#18128)
When I'm working on feature branches that take more than a day or two to
finish, review, and merge, I find that my migrations often end up
conflicting with other people's migrations that have been merged in the
interim. This adds instructions on how to deal with this, based on what
I personally do, and (probably more usefully) bundles the core of the
process into a script that can do most of the dirty work.
2021-02-10 10:51:18 -08:00
Eric Fritz
e0237ca768
codeintel: Publish index configuration from database (#14415) 2020-10-05 12:39:33 -05:00
Eric Fritz
07444839f7
codeintel: RFC 235: Add migration infrastructure to codeintel database (#13903) 2020-10-02 09:56:50 -05:00
Eric Fritz
4ef5e1bf95
chore: Relocate frontend migrations (#13943) 2020-09-18 11:05:38 -05:00
Eric Fritz
6ea8beae7e
chore: Co-locate dev scripts to interact with postgres (#13942) 2020-09-18 09:42:25 -05:00