Plume/migrations/sqlite/2018-04-23-101717_create_blogs/up.sql

15 lines
497 B
MySQL
Raw Normal View History

2018-04-23 10:29:27 +00:00
-- Your SQL goes here
CREATE TABLE blogs (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
2018-04-23 10:29:27 +00:00
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 ''
2018-04-23 10:29:27 +00:00
)