mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 15:01:10 +00:00
88456faf84
this one's achieved by adding "NOT NULL" at the *correct* position in SQLite's create tables.
15 lines
616 B
SQL
15 lines
616 B
SQL
-- Your SQL goes here
|
|
CREATE TABLE instances (
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
public_domain VARCHAR NOT NULL,
|
|
name VARCHAR NOT NULL,
|
|
local BOOLEAN NOT NULL DEFAULT 'f',
|
|
blocked BOOLEAN NOT NULL DEFAULT 'f',
|
|
creation_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
open_registrations BOOLEAN NOT NULL DEFAULT 't',
|
|
short_description TEXT NOT NULL DEFAULT '',
|
|
long_description TEXT NOT NULL DEFAULT '',
|
|
default_license TEXT NOT NULL DEFAULT 'CC-0',
|
|
long_description_html VARCHAR NOT NULL DEFAULT '',
|
|
short_description_html VARCHAR NOT NULL DEFAULT ''
|
|
)
|