Closed jverkoey closed 1 year ago
In the absence of such a function, something like the following can be ran:
try db.execute("""
BEGIN TRANSACTION;
ALTER TABLE your-table
DROP COLUMN your-column;
COMMIT TRANSACTION;
"""
)
a future version will offer full support for schema migrations, it's not quite finished yet
Thank you! 🙏
Similar to
try db.run(users.addColumn(suffix))
, it would be useful to also be able to delete columns using syntax liketry db.run(users.deleteColumn(suffix))