mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Add delete to handlers
CURA-6096
This commit is contained in:
parent
55d6ff0e61
commit
3191baf5a0
3 changed files with 6 additions and 3 deletions
|
@ -18,7 +18,8 @@ class IntentDatabaseHandler(DatabaseMetadataContainerController):
|
||||||
setting_version = ?
|
setting_version = ?
|
||||||
WHERE id = ?
|
WHERE id = ?
|
||||||
""",
|
""",
|
||||||
select_query = "SELECT * FROM intents where id = ?",
|
select_query = "SELECT * FROM intents WHERE id = ?",
|
||||||
|
delete_query = "DELETE FROM intents WHERE id = ?",
|
||||||
table_query="""CREATE TABLE intents
|
table_query="""CREATE TABLE intents
|
||||||
(
|
(
|
||||||
id text,
|
id text,
|
||||||
|
|
|
@ -18,7 +18,8 @@ class QualityDatabaseHandler(DatabaseMetadataContainerController):
|
||||||
setting_version = ?
|
setting_version = ?
|
||||||
WHERE id = ?
|
WHERE id = ?
|
||||||
""",
|
""",
|
||||||
select_query = "SELECT * FROM qualities where id = ?",
|
select_query = "SELECT * FROM qualities WHERE id = ?",
|
||||||
|
delete_query = "DELETE FROM qualities WHERE id = ?",
|
||||||
table_query = """CREATE TABLE qualities
|
table_query = """CREATE TABLE qualities
|
||||||
(
|
(
|
||||||
id text,
|
id text,
|
||||||
|
|
|
@ -15,7 +15,8 @@ class VariantDatabaseHandler(DatabaseMetadataContainerController):
|
||||||
setting_version = ?
|
setting_version = ?
|
||||||
WHERE id = ?
|
WHERE id = ?
|
||||||
""",
|
""",
|
||||||
select_query= "SELECT * FROM variants where id = ?",
|
select_query = "SELECT * FROM variants WHERE id = ?",
|
||||||
|
delete_query = "DELETE FROM variants WHERE id = ?",
|
||||||
table_query = """CREATE TABLE variants
|
table_query = """CREATE TABLE variants
|
||||||
(
|
(
|
||||||
id text,
|
id text,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue