v0.5.1
This release includes an important bug fix for schema generation, ensuring consistent behavior when using the OVERWRITE
and IF NOT EXISTS
methods.
🛠️ Fixes
Section titled “🛠️ Fixes”Schema Generation
Section titled “Schema Generation”-
Fixed OVERWRITE method application: The
OVERWRITE
andIF NOT EXISTS
methods were only being applied toDEFINE TABLE
statements, but not toDEFINE FIELD
orDEFINE INDEX
statements. This inconsistency has been resolved by ensuring these methods are now consistently applied to all schema definition statements (tables, fields, and indexes).This fix ensures that when using schema generation with the
OVERWRITE
method, all schema elements will be properly overwritten as expected, providing consistent behavior across the entire schema.// Now correctly applies OVERWRITE to table, fields, and indexesawait applySchema(db, [User, UserEmailIndex], "OVERWRITE");
🧪 Tests
Section titled “🧪 Tests”- Added comprehensive tests to verify that the
OVERWRITE
andIF NOT EXISTS
methods are correctly applied to all schema definition types.