8 lines
171 B
MySQL
8 lines
171 B
MySQL
|
CREATE TABLE attributions (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
name VARCHAR UNIQUE NOT NULL
|
||
|
);
|
||
|
|
||
|
ALTER TABLE photos ADD COLUMN attribution_id
|
||
|
INTEGER REFERENCES attributions (id);
|