# SyncOptions.withoutDrop property · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.syncoptions.withoutdrop/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

Replaces each view in place instead of dropping it first.

**Signature:**

```typescript
withoutDrop?: boolean;
```

## Remarks

The default drops a view and creates it again, which fails as soon as another view selects from it — Postgres will not drop a view something depends on. With this set, only the model's own create statement runs, so it has to be written as `CREATE OR REPLACE VIEW` to succeed against a view that already exists. Postgres will still refuse a replacement whose output columns differ in name, type or order, so a column added to the middle of a view needs the drop.

