Skip to content

Commit

Permalink
Remove schema.sql since that table is no longer used, refs #7
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 6, 2024
1 parent 1b84131 commit 3b5b699
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
19 changes: 18 additions & 1 deletion datasette_metadata_editable/internal_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,24 @@

@internal_migrations()
def m001_initialize_datasette_metadata_editable(db: Database):
db.executescript(SCHEMA)
db.executescript(
"""
create table datasette_metadata_editable_entries(
-- 'index' | 'database' | 'table' | 'column'
target_type text not null,
-- Uses empty string for "null" to enforce uniqueness
target_database text not null,
-- Uses empty string for "null" to enforce uniqueness
target_table text not null,
-- Uses empty string for "null" to enforce uniqueness
target_column text not null,
-- ex. 'description_html', 'source', 'license', 'about', etc.
key text not null,
value text,
UNIQUE(target_type, target_database, target_table, target_column, key)
);
"""
)


@internal_migrations()
Expand Down
15 changes: 0 additions & 15 deletions datasette_metadata_editable/schema.sql

This file was deleted.

0 comments on commit 3b5b699

Please sign in to comment.