File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
docs/src/piccolo/migrations Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,8 @@ The contents of an empty migration file looks like this:
4141 Replace the `run ` function with whatever you want the migration to do -
4242typically running some SQL. It can be a function or a coroutine.
4343
44-
4544The golden rule
46- ~~~~~~~~~~~~~~~
45+ ---------------
4746
4847Never import your tables directly into a migration, and run methods on them.
4948
@@ -95,3 +94,11 @@ Creating an auto migration:
9594.. warning :: Auto migrations aren't supported in SQLite, because of SQLite's
9695 extremely limited support for SQL Alter statements. This might change in
9796 the future.
97+
98+ Troubleshooting
99+ ~~~~~~~~~~~~~~~
100+
101+ Auto migrations can accomodate most schema changes. There may be some rare edge
102+ cases where a single migration is trying to do too much in one go, and fails.
103+ To avoid these situations, create auto migrations frequently, and keep them
104+ fairly small.
You can’t perform that action at this time.
0 commit comments