You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
581B

  1. <?php
  2. use Framework\Database\Connection\Connection;
  3. class CreateStockMovementsTable
  4. {
  5. public function migrate(Connection $connection)
  6. {
  7. $table = $connection->createTable('stock_movements');
  8. $table->id('id');
  9. $table->int('item_id');
  10. $table->int('location_id');
  11. $table->string('type');
  12. $table->int('quantity_change');
  13. $table->int('quantity_after');
  14. $table->text('notes');
  15. $table->int('user_id');
  16. $table->dateTime('created_at')->default('CURRENT_TIMESTAMP');
  17. $table->execute();
  18. }
  19. }

Powered by TurnKey Linux.