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
OVERWRITEandIF NOT EXISTSmethods were only being applied toDEFINE TABLEstatements, but not toDEFINE FIELDorDEFINE INDEXstatements. 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
OVERWRITEmethod, 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
OVERWRITEandIF NOT EXISTSmethods are correctly applied to all schema definition types.