new laptop setup
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Executable
+2
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE feed_item
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE feed (
|
||||
id SERIAL PRIMARY KEY,
|
||||
user_id INTEGER NOT NULL REFERENCES users(id) DEFERRABLE INITIALLY DEFERRED,
|
||||
title VARCHAR NOT NULL,
|
||||
url VARCHAR NOT NULL,
|
||||
UNIQUE (url)
|
||||
)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
CREATE TABLE feed_item {
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE feed_item (
|
||||
id SERIAL PRIMARY KEY,
|
||||
feed_id INTEGER NOT NULL REFERENCES feed(id) DEFERRABLE INITIALLY DEFERRED,
|
||||
content TEXT NOT NULL,
|
||||
read BOOLEAN NOT NULL DEFAULT FALSE
|
||||
)
|
||||
Reference in New Issue
Block a user