000003_song_file_modified_date.up.sql 224 B

12345
  1. ALTER TABLE songs ADD modified_date bigint;
  2. UPDATE songs SET modified_date = 0;
  3. ALTER TABLE songs ALTER COLUMN modified_date SET NOT NULL;
  4. CREATE INDEX filename_timestamp ON songs (base_path, relative_path, modified_date);