mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 15:27:46 +00:00
Merge pull request #4638 from Infisical/schema-generation-ignore-notif-default
ignore user_notification_default partition table in schema generation
This commit is contained in:
@@ -85,10 +85,9 @@ const getZodDefaultValue = (type: unknown, value: string | number | boolean | Ob
|
|||||||
};
|
};
|
||||||
|
|
||||||
const bigIntegerColumns: Record<string, string[]> = {
|
const bigIntegerColumns: Record<string, string[]> = {
|
||||||
"folder_commits": ["commitId"]
|
folder_commits: ["commitId"]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
const tables = (
|
const tables = (
|
||||||
await db("information_schema.tables")
|
await db("information_schema.tables")
|
||||||
@@ -99,6 +98,7 @@ const main = async () => {
|
|||||||
(el) =>
|
(el) =>
|
||||||
!el.tableName.includes("_migrations") &&
|
!el.tableName.includes("_migrations") &&
|
||||||
!el.tableName.includes("audit_logs_") &&
|
!el.tableName.includes("audit_logs_") &&
|
||||||
|
!el.tableName.includes("user_notifications_") &&
|
||||||
!el.tableName.includes("active_locks") &&
|
!el.tableName.includes("active_locks") &&
|
||||||
el.tableName !== "intermediate_audit_logs"
|
el.tableName !== "intermediate_audit_logs"
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user