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

3 lines
118 B
MySQL
Raw Permalink Normal View History

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