mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 00:21:55 +00:00
13 lines
557 B
SQL
13 lines
557 B
SQL
START TRANSACTION;
|
|
|
|
ALTER TABLE users ADD COLUMN spotify_id VARCHAR(255) NOT NULL DEFAULT '';
|
|
ALTER TABLE albums ADD COLUMN spotify_id VARCHAR(255) NOT NULL DEFAULT '';
|
|
ALTER TABLE artists ADD COLUMN spotify_id VARCHAR(255) NOT NULL DEFAULT '';
|
|
ALTER TABLE tracks ADD COLUMN spotify_id VARCHAR(255) NOT NULL DEFAULT '';
|
|
|
|
CREATE INDEX usersSpotifyLookup ON users (spotify_id);
|
|
CREATE INDEX albumsSpotifyLookup ON albums (spotify_id);
|
|
CREATE INDEX artistsSpotifyLookup ON artists (spotify_id);
|
|
CREATE INDEX tracksSpotifyLookup ON tracks (spotify_id);
|
|
|
|
COMMIT; |