Description
Database class has the methods createTable and dropTable. But it does not have the same behavior that a Migration has with up and down method.
Usage example (this is just an example and could change when developing Schema):
import{Migration}from'@secjs/database'exportclassUsersMigrationextendsMigration{protectedtableName='users'publicasyncup(){this.createTable(this.tableName,(table)=>{table.increments('id').primary()table.string('name').nullable()table.timestamp('created_at',{useTz: true})table.timestamp('updated_at',{useTz: true})})}publicasyncdown(){this.dropTable(this.tableName)}}Package version
1.0.1
Description
Database class has the methods createTable and dropTable. But it does not have the same behavior that a Migration has with up and down method.
Usage example (this is just an example and could change when developing Schema):
Package version
1.0.1