summaryrefslogtreecommitdiff
path: root/doc/source/faq.rst
diff options
context:
space:
mode:
authorJim Rollenhagen <jim@jimrollenhagen.com>2019-09-26 09:56:42 -0400
committerJim Rollenhagen <jim@jimrollenhagen.com>2019-09-26 09:56:42 -0400
commit52672a64cc0cab4ea14a4a756fce850eb03315e3 (patch)
treea86024e4e6141aa8983c750f751c58d924f5b11a /doc/source/faq.rst
parent8acab2cd75a5b23ac162e49c8e4fb1e3f958352a (diff)
downloadsqlalchemy-migrate-master.tar.gz
Retire github mirror, repo moved to opendevHEADmaster
Diffstat (limited to 'doc/source/faq.rst')
-rw-r--r--doc/source/faq.rst13
1 files changed, 0 insertions, 13 deletions
diff --git a/doc/source/faq.rst b/doc/source/faq.rst
deleted file mode 100644
index ba250bc..0000000
--- a/doc/source/faq.rst
+++ /dev/null
@@ -1,13 +0,0 @@
-FAQ
-===
-
-Q: Adding a **nullable=False** column
-**************************************
-
-A: Your table probably already contains data. That means if you add column, it's contents will be NULL.
-Thus adding NOT NULL column restriction will trigger IntegrityError on database level.
-
-You have basically two options:
-
-#. Add the column with a default value and then, after it is created, remove the default value property. This does not work for column types that do not allow default values at all (such as 'text' and 'blob' on MySQL).
-#. Add the column without NOT NULL so all rows get a NULL value, UPDATE the column to set a value for all rows, then add the NOT NULL property to the column. This works for all column types.