]> Untitled Git - lemmy.git/commit
db: add utils schema/funcs for view handling qol
authoreday <elraineyday@protonmail.com>
Tue, 8 Sep 2020 00:23:49 +0000 (20:23 -0400)
committereiknat <eiknat@protonmail.com>
Mon, 14 Sep 2020 02:58:13 +0000 (22:58 -0400)
commit26816b93666cb0ffdb9b12d14681ae78c58a9f8b
tree0fee9d5af0f54ffca808f5b330e9f7a8dff74cd1
parentc239b9af83fd948d2c36fa5d38ea9b5f9d9353cf
db: add utils schema/funcs for view handling qol

Creates a new "utils" db schema with a simple table and two functions under "utils".  The functions take a 'schema' and 'table'- One will get all dependent views and save the ddl, the other will execute stored ddl skipping errors.  Mostly for QOL with testing migrations and making migration files smaller
server/migrations/2020-09-07-231141_add_migration_utils/down.sql [new file with mode: 0644]
server/migrations/2020-09-07-231141_add_migration_utils/up.sql [new file with mode: 0644]