You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this script, you can perform database upgrades by providing/adding specific SQL scripts with the right version number.
19
19
Once a new version number is detected it will incrementally execute this.
20
20
21
-
While doing so it will create a table "DatabaseVersion".
21
+
While doing so it will create a table "DatabaseVersion" (unless overriden by specifying the `DatabaseVersionTable` parameter).
22
22
If the DatabaseVersion table doesn't exist it will automatically create it.
23
23
24
24
This function allows you to trigger a database migration, which will only execute the newly provided SQL scripts, based on the provided version number in each of the scripts.
@@ -35,6 +35,7 @@ The current version is stored in a table "DatabaseVersion", which will be create
35
35
|`ScriptsFolder`| no (default: `$PSScriptRoot/sqlScripts`| The directory folder where the SQL migration scripts are located on the file system |
36
36
|`ScriptsFileFilter`| no (default: `*.sql`) | The file filter to limit the SQL script files to use during the migrations |
37
37
|`DatabaseSchema`| no (default: `dbo`) | The database schema to use when running SQL commands on the target database |
38
+
|`DatabaseVersionTable`| no (default: `DatabaseVersion`) | The name of the table that keeps track of the migration scripts that have been applied |
38
39
39
40
Make sure that the credentials that you provide can write tables to the database + any action that you specify in the SQL scripts. (If the user is a member of the `db_ddlamin` role, then that user should have the necessary rights)
With this script, you can perform database upgrades by providing/adding specific SQL scripts with the right version number.
19
19
Once a new version number is detected it will incrementally execute this.
20
20
21
-
While doing so it will create a table "DatabaseVersion".
21
+
While doing so it will create a table "DatabaseVersion" (unless overriden by specifying the `DatabaseVersionTable` parameter).
22
22
If the DatabaseVersion table doesn't exist it will automatically create it.
23
23
24
24
This function allows you to trigger a database migration, which will only execute the newly provided SQL scripts, based on the provided version number in each of the scripts.
@@ -35,6 +35,7 @@ The current version is stored in a table "DatabaseVersion", which will be create
35
35
|`ScriptsFolder`| no (default: `$PSScriptRoot/sqlScripts`| The directory folder where the SQL migration scripts are located on the file system |
36
36
|`ScriptsFileFilter`| no (default: `*.sql`) | The file filter to limit the SQL script files to use during the migrations |
37
37
|`DatabaseSchema`| no (default: `dbo`) | The database schema to use when running SQL commands on the target database |
38
+
|`DatabaseVersionTable`| no (default: `DatabaseVersion`) | The name of the table that keeps track of the migration scripts that have been applied |
38
39
39
40
Make sure that the credentials that you provide can write tables to the database + any action that you specify in the SQL scripts. (If the user is a member of the `db_ddlamin` role, then that user should have the necessary rights)
0 commit comments