You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#48 is about a UI to edit data. That presupposes that you have an existing schema of tables. For a non-technical user, writing SQL to create such tables may be too high of a barrier.
For users with create-table permission, add a Create table button on the Database page. It should make a new, unnamed table and redirect you to it. The table will have a single rowid id column.
For users with create-table permission, the table page should show a link to customize the table.
The customize table page should let you rename a table.
The customize table page should let you drop the table. You should have to type something to confirm.
The customize table page should let you add a simple column:
BOOLEAN
TEXT
DATE
DATETIME
INTEGER
REAL
The customize table page should let you add a column that is a non-compound foreign key to another table.
The customize table page should let you rename a column.
The customize table page should let you drop a column.
The customize table page should let you toggle NULL/NOT NULL for a column
The customize table page should let you add restrict the values that a TEXT column can use. It should add a CHECK (column IN (...)) expression.
We should use the form of constraints that give a meaningful name in the error, eg CONSTRAINT tablename_column_valid CHECK (column IN (...))
The customize table page should let you add a UNIQUE constraint on a column.
The customize table page should let you re-order columns.
The text was updated successfully, but these errors were encountered:
Table migrations are pretty important, I think I'm not comfortable doing monkeypatching shenanigans here.
In fact, I think I'd like to be even stricter than sqlite-utils: if I can't parse the table definition and fully understand it, I'd probably want to stop processing.
Unfortunately, I think this might mean that I write my own code here. :( It might be a little simpler, in that it can focus on doing 1 step at a time, which might make this a bit more tractable?
#48 is about a UI to edit data. That presupposes that you have an existing schema of tables. For a non-technical user, writing SQL to create such tables may be too high of a barrier.
For users with
create-table
permission, add aCreate table
button on the Database page. It should make a new, unnamed table and redirect you to it. The table will have a single rowidid
column.For users with
create-table
permission, the table page should show a link to customize the table.The customize table page should let you rename a table.
The customize table page should let you drop the table. You should have to type something to confirm.
The customize table page should let you add a simple column:
The customize table page should let you add a column that is a non-compound foreign key to another table.
The customize table page should let you rename a column.
The customize table page should let you drop a column.
The customize table page should let you toggle NULL/NOT NULL for a column
The customize table page should let you add restrict the values that a TEXT column can use. It should add a
CHECK (column IN (...))
expression.CONSTRAINT tablename_column_valid CHECK (column IN (...))
The customize table page should let you add a UNIQUE constraint on a column.
The customize table page should let you re-order columns.
The text was updated successfully, but these errors were encountered: