mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-19 22:14:08 +01:00
18 lines
479 B
SQL
18 lines
479 B
SQL
-- +goose Up
|
|
-- Create the lookup table for inventory item statuses
|
|
CREATE TABLE inventory_status (
|
|
id SERIAL PRIMARY KEY,
|
|
name TEXT NOT NULL UNIQUE
|
|
);
|
|
|
|
-- Insert common default statuses needed for the next migration (00008)
|
|
INSERT INTO inventory_status (name) VALUES
|
|
('In Stock'),
|
|
('Low Stock'),
|
|
('Out of Stock'),
|
|
('Expired'),
|
|
('Reserved');
|
|
-- Add any other statuses that might exist in the old 'status' text column
|
|
|
|
-- +goose Down
|
|
DROP TABLE IF EXISTS inventory_status; |