include/drivers/sqlite3/sqlite3_columns.rb in baza-0.0.8 vs include/drivers/sqlite3/sqlite3_columns.rb in baza-0.0.9
- old
+ new
@@ -5,10 +5,10 @@
#Constructor. This should not be called manually.
def initialize(args)
@args = args
end
- DATA_SQL_ALLOWED_KEYS = [:name, :type, :maxlength, :autoincr, :primarykey, :null, :default, :default_func, :renames]
+ DATA_SQL_ALLOWED_KEYS = [:name, :type, :maxlength, :autoincr, :primarykey, :null, :default, :default_func, :renames, :after]
#Returns SQL for a knjdb-compatible hash.
def data_sql(data)
data.each do |key, val|
raise "Invalid key: '#{key}' (#{key.class.name})." unless DATA_SQL_ALLOWED_KEYS.include?(key)
end
\ No newline at end of file