HomePhabricator
Diffusion Comm faefacd216d0

[native/sqlite] introduce function to create database

Description

[native/sqlite] introduce function to create database

Summary:
Code to create entire db schema on a fresh install (creates both tables and indexes).

Task ENG-1592

Code is the same which is generated by an existing database created by the previous method.

Added newlines to divide query into logical blocks but not sure if it is a good pattern here.

Test Plan: Call this function and compare created schema with schema created previously (tables, columns, types, indexes)

Reviewers: marcin, jon, atul, tomek

Reviewed By: marcin, atul, tomek

Subscribers: ashoat, tomek, atul, abosh

Differential Revision: https://phab.comm.dev/D5378

Details

Provenance
kamilAuthored on Oct 17 2022, 4:40 AM
Reviewer
marcin
Differential Revision
D5378: [native/sqlite] introduce function to create database
Parents
rCOMM7c0a2863ec05: [native/sqlite] refactor code to perform migration inside one transaction
Branches
Unknown
Tags
Unknown