Skip to content

Commit

Permalink
Add docs for how to create bacpac file
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyongzhu committed Jan 11, 2023
1 parent 7d814eb commit 2837926
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/dev_guide/creating_bacpac_file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: default
title: Creating the BACPAC file
parent: Developer Guides
---

# Creating the BACPAC file

BACPAC is the SQL server backup format, the BACPAC file we used in the ARM template contains empty tables with predefined schemas, which are required by the registry service.

In case you need to re-create the BACPAC file, follow these steps:

1. Create a new, empty SQL database on Azure
![architecture](../images/bacpac-sql-database.png)

2. Connect to the database with a SQL client, such as Azure Data Studio, run the SQL script at https://github.com/linkedin/feathr/blob/main/registry/sql-registry/scripts/schema.sql

3. Now we created the tables required by the registry service, we can use “Export” function to create the BACPAC file
![architecture](../images/bacpac-export.png)

After this step, the database is not needed anymore.
Binary file added docs/images/bacpac-export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/bacpac-sql-database.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2837926

Please sign in to comment.