mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 06:24:21 +01:00
Adds `ALTER TABLE` to the simulator. Currently, there are no properties that generate `ALTER TABLE`. The query is only generated in `Property::Query` or in extension queries. Conditions to generate `ALTER TABLE`: - In differential testing, do not generate `ALTER COLUMN` as SQLite does not support it. - If there is only 1 column, or all columns are present in indexes, do not generate a `DROP COLUMN` as it would be an error in the database - if there are no tables, obviously do not generate `ALTER TABLE` Some fixes: - handle NULL generation in `GTValue` and `LTValue`, as we now have to handle nulls due to `ADD COLUMN` adding cols with NULL - correctly compare NULLs in `binary_compare` Closes #3650