mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-19 02:01:04 +00:00
88456faf84
this one's achieved by adding "NOT NULL" at the *correct* position in SQLite's create tables.
14 lines
497 B
SQL
14 lines
497 B
SQL
-- Your SQL goes here
|
|
CREATE TABLE blogs (
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
actor_id VARCHAR NOT NULL,
|
|
title VARCHAR NOT NULL,
|
|
summary TEXT NOT NULL DEFAULT '',
|
|
outbox_url VARCHAR NOT NULL,
|
|
inbox_url VARCHAR NOT NULL,
|
|
instance_id INTEGER REFERENCES instances(id) ON DELETE CASCADE NOT NULL,
|
|
creation_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
ap_url text not null default '',
|
|
private_key TEXT,
|
|
public_key TEXT NOT NULL DEFAULT ''
|
|
)
|