# V24.1 Database Fix

The V24 code uses the `products.out_of_stock` column, but an existing local
database may not have run the V24 migration yet.

## Required one-time command

From the Laravel project root run:

    php artisan migrate

Then clear cached configuration/routes/views:

    php artisan optimize:clear

## Verify

Run:

    php artisan migrate:status

The migration named:

    2026_09_01_000002_add_out_of_stock_to_products

must show as **Ran**.

The New Order controller in V24.1 also checks whether the column exists, so the
New Order page will not crash during deployment. The Out of Stock checkbox and
frontend blocking will become fully active after the migration is run.
