mirror of
https://github.com/simonw/datasette.git
synced 2026-09-28 21:04:08 +02:00
parent
b7505a9fc2
commit
e0d39ba69f
5 changed files with 143 additions and 54 deletions
|
|
@ -120,18 +120,12 @@ async def initialize_metadata_tables(db):
|
|||
title TEXT,
|
||||
description TEXT,
|
||||
description_html TEXT,
|
||||
hide_sql INTEGER NOT NULL DEFAULT 0 CHECK (hide_sql IN (0, 1)),
|
||||
fragment TEXT,
|
||||
options TEXT NOT NULL DEFAULT '{}',
|
||||
parameters TEXT NOT NULL DEFAULT '[]',
|
||||
is_write INTEGER NOT NULL DEFAULT 0 CHECK (is_write IN (0, 1)),
|
||||
published INTEGER NOT NULL DEFAULT 0 CHECK (published IN (0, 1)),
|
||||
source TEXT NOT NULL DEFAULT 'user',
|
||||
owner_id TEXT,
|
||||
on_success_message TEXT,
|
||||
on_success_message_sql TEXT,
|
||||
on_success_redirect TEXT,
|
||||
on_error_message TEXT,
|
||||
on_error_redirect TEXT,
|
||||
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (database_name, name),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue