data-table-postgres@0.2.0
📦 remixView on GitHub →
✨ 2 features🔧 8 symbols
Summary
The postgres adapter now supports first-class migration execution, allowing DDL operations and transaction-aware schema introspection during migrations. This required separating migration logic into a dedicated `migrate(...)` function.
Migration Steps
- Users performing migration/DDL operations should now use the new `migrate(...)` method instead of relying on `execute(...)` which is reserved for normal reads/writes.
✨ New Features
- Added first-class migration execution support to the postgres adapter, compiling and executing DataMigrationOperation plans for remix/data-table/migrations, including DDL operations, journal writes, and adapter-managed migration locking.
- Introduced transaction-aware migration introspection to the postgres adapter: hasTable(table, transaction?) and hasColumn(table, column, transaction?) now respect an active migration transaction client.