We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd621f commit 81738abCopy full SHA for 81738ab
lib/arjdbc/sqlite3/adapter.rb
@@ -364,7 +364,8 @@ def table_structure(table_name)
364
# See: https://www.sqlite.org/lang_altertable.html
365
# SQLite has an additional restriction on the ALTER TABLE statement
366
def invalid_alter_table_type?(type, options)
367
- type.to_sym == :primary_key || options[:primary_key]
+ type.to_sym == :primary_key || options[:primary_key] ||
368
+ options[:null] == false && options[:default].nil?
369
end
370
371
def alter_table(table_name, foreign_keys = foreign_keys(table_name), **options)
0 commit comments