Application configuration #290
Replies: 1 comment
-
@tomg-formpak thanks for the questions Remember that the database bootstrap script is not intended to be a migration tool. It's just meant to create an initial blank schema so that your application can connect to a functional database when it first starts up. Many server side technologies have a similar functionality built into them, but we wanted to provide a mechanism for customers who are not using such tools already or want more control over how their database schema come to life. You can of course include static "lookup" data if your "empty" database should come to life with that data available. The format that SaaS Boost expects for the database bootstrap file is UTF-8 encoded without a BOM. SQL statements should be terminated by a semicolon followed by a newline (either For example, the following is a completely valid MS SQL Server statement: -- Create the category table if it doesn't exist
IF OBJECT_ID('category', 'U') IS NULL
BEGIN
CREATE TABLE category (
category_id INT PRIMARY KEY IDENTITY(1, 1),
category VARCHAR(255) NOT NULL UNIQUE CHECK (category <> '')
)
END; That entire block will be sent as a single statement to SQL Server and will execute properly. The PostgreSQL equivalent of that statement is: -- Create the category table if it doesn't exist
CREATE TABLE IF NOT EXISTS category (
category_id SERIAL PRIMARY KEY,
category VARCHAR(255) NOT NULL UNIQUE CHECK (category <> '')
); Note that specialized commands such as the Postgres If you use SQL Server Management Studio generate scripts command, it will encode the text file as UTF-16 LE by default. There is a way to select the file encoding when you save the output. IBM DB2 has an As for your second question I can think of a few options:
|
Beta Was this translation helpful? Give feedback.
-
We are using SaaS Boost version [v2.0.0-rc1], we have configured the application, service and container settings. My concerns are :
Please advise me on this. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions