From a6490c2d32dc98c44d1a33053d6636b2e0badbb8 Mon Sep 17 00:00:00 2001 From: Ibrahim Rahhal Date: Fri, 6 Aug 2021 18:00:26 +0300 Subject: [PATCH] issue-190: SyncOptions interface doesn't container alter --- lib/sequelize.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/sequelize.d.ts b/lib/sequelize.d.ts index 66d0971..ad0cbbe 100644 --- a/lib/sequelize.d.ts +++ b/lib/sequelize.d.ts @@ -31,6 +31,11 @@ export interface SyncOptions extends Logging { */ force?: boolean + /** + * This checks what is the current state of the table in the database (which columns it has, what are their data types, etc), and then performs the necessary changes in the table to make it match the model. + */ + alter?: boolean + /** * Match a regex against the database name before syncing, a safety check for cases where force: true is * used in tests but not live code