0
Виконано

Support "if not exists" clause in sqlite table and index creation.

Aubrey Jones 6 років тому оновлено Michał Kołodziejski 6 років тому 1
It would be nice to support the "if not exists" clause for table and index creation when targeting sqlite.

Відповідь

Відповідь
Виконано
Vertabelo already supports "if not exists" clause in these two statements.

In case of table creation, just expand "Additional properties" section and set "IF NOT EXISTS clause" to "Yes":



You'll then see your this clause in generated SQL:



The same applies to index. Just set the property like this:



and you'll see this in the SQL output:



I hope this helps.
Відповідь
Виконано
Vertabelo already supports "if not exists" clause in these two statements.

In case of table creation, just expand "Additional properties" section and set "IF NOT EXISTS clause" to "Yes":



You'll then see your this clause in generated SQL:



The same applies to index. Just set the property like this:



and you'll see this in the SQL output:



I hope this helps.