Files
LibreTunes/migrations/2025-02-02-212930_use_timestamp_for_added_date/up.sql
Ethan Girouard e7a8491653
All checks were successful
Push Workflows / docs (push) Successful in 56s
Push Workflows / test (push) Successful in 2m23s
Push Workflows / leptos-test (push) Successful in 2m31s
Push Workflows / build (push) Successful in 3m24s
Push Workflows / docker-build (push) Successful in 8m12s
Push Workflows / nix-build (push) Successful in 18m0s
Use timestamp instead of date for added_date column in songs table
2025-02-02 16:42:24 -05:00

5 lines
191 B
SQL

ALTER TABLE songs
ALTER COLUMN added_date TYPE TIMESTAMP USING added_date::TIMESTAMP,
ALTER COLUMN added_date SET DEFAULT CURRENT_TIMESTAMP,
ALTER COLUMN added_date SET NOT NULL;