-- migrate:up
ALTER TABLE peminjaman
ADD COLUMN status ENUM('Pending', 'Di Terima', 'Completed', 'Cancelled') DEFAULT 'Pending',
ADD COLUMN keterangan TEXT NOT NULL,
ADD COLUMN warehouse_id INT NOT NULL;

ALTER TABLE peminjaman
DROP COLUMN status_pengembalian;

-- migrate:down
ALTER TABLE peminjaman
DROP COLUMN status,
DROP COLUMN keterangan,
DROP COLUMN warehouse_id;

ALTER TABLE peminjaman
ADD COLUMN status_pengembalian VARCHAR(100) DEFAULT NULL;
