mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:35:58 +08:00
Add delete to handlers
CURA-6096
This commit is contained in:
parent
55d6ff0e61
commit
3191baf5a0
@ -18,7 +18,8 @@ class IntentDatabaseHandler(DatabaseMetadataContainerController):
|
||||
setting_version = ?
|
||||
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
|
||||
(
|
||||
id text,
|
||||
|
@ -18,7 +18,8 @@ class QualityDatabaseHandler(DatabaseMetadataContainerController):
|
||||
setting_version = ?
|
||||
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
|
||||
(
|
||||
id text,
|
||||
|
@ -15,7 +15,8 @@ class VariantDatabaseHandler(DatabaseMetadataContainerController):
|
||||
setting_version = ?
|
||||
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
|
||||
(
|
||||
id text,
|
||||
|
Loading…
x
Reference in New Issue
Block a user