Plume/migrations/postgres/2018-09-02-123623_medias_owner_id/up.sql

3 lines
118 B
MySQL
Raw Normal View History

2018-09-02 20:55:42 +00:00
-- Your SQL goes here
ALTER TABLE medias ADD COLUMN owner_id INTEGER REFERENCES users(id) ON DELETE CASCADE NOT NULL;