Plume/migrations/2018-09-03-102510_users_add_avatar/up.sql

3 lines
110 B
MySQL
Raw Normal View History

-- Your SQL goes here
ALTER TABLE users ADD COLUMN avatar_id INTEGER REFERENCES medias(id) ON DELETE CASCADE;