Skip to content

Commit 26eb9f1

Browse files
elpeteclaude
andcommitted
docs: warn that pretend only works with qb, not queryExecute
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 880d0fa commit 26eb9f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ component {
3030
}
3131
```
3232

33+
> **Warning:** The `pretend` feature only works with `qb`'s `SchemaBuilder` and `QueryBuilder`. It does **not** work with `queryExecute` or any other method of executing SQL. If your migration uses `queryExecute`, the `pretend` flag will have no effect and the SQL will be executed normally.
34+
3335
The name of this file could be something like `2017_09_03_043150_create_users_table.cfc`. The first 17 characters of this file represent the timestamp of the migration and need to be in this format: `YYYY_MM_DD_HHMISS`. The reason for this is so `cfmigrations` can run the migrations in the correct order. You may have migrations that add columns to a table, so you need to make sure the table exists first. In this case, just make sure the timestamp for adding the new column comes after the timestamp for creating the table, like so:
3436

3537
```

0 commit comments

Comments
 (0)