Initial pass at migrations

This commit is contained in:
Owen Schwartz
2024-12-25 15:49:35 -05:00
parent 29bd88ebdf
commit 2a265e5cdd
9 changed files with 191 additions and 26 deletions

View File

@@ -11,5 +11,5 @@ export async function copyInConfig() {
// update the domain on all of the orgs where the domain is not equal to the new domain
// TODO: eventually each org could have a unique domain that we do not want to overwrite, so this will be unnecessary
await db.update(orgs).set({ domain }).where(ne(orgs.domain, domain));
logger.info("Updated orgs with new domain");
logger.debug("Updated orgs with new domain");
}