Dmitriy Pleshevskiy
c71e8fe33f
refac(core): add batch exec trait refac(core): smarter managers refac(cli): removed adapter, builder
15 lines
508 B
SQL
15 lines
508 B
SQL
-- Your SQL goes here
|
|
|
|
CREATE TABLE persons (
|
|
id int AUTO_INCREMENT PRIMARY KEY,
|
|
email varchar(256) NOT NULL UNIQUE,
|
|
display_name text NOT NULL,
|
|
created_at timestamp NOT NULL DEFAULT current_timestamp
|
|
);
|
|
|
|
/* This table doesn't exist
|
|
↓↓↓↓↓↓↓ */
|
|
ALTER TABLE recipes
|
|
ADD COLUMN author_person_id int NULL
|
|
REFERENCES persons (id) ON UPDATE CASCADE ON DELETE CASCADE;
|