Skip to content

Commit

Permalink
feature/44133 baseline sql migrations (#1736)
Browse files Browse the repository at this point in the history
* baseline script generated by SSMS

* resave as utf-8

* build out docs and dependencies

* WIP

* build out tools

* add logger

* add sql config

* working with single set

* improve output messages

* multiple script directories support

* update docs, fix migration creator

* add triggers to schema objects, make notes file for dev use

* fix core data, convert user migrations to js

* update scripts

* docs

* partway through seeds, failing on requires from admin

* update based on comments

* seeds working

* convert migrations to js

* repoint CI scripts

* move nvm init into script

* add nvm init to down script

* fix script call

* fix config for creating database

* append units

* use migrator values for priveliged duties

* fix config assignment

* echo user

* remove debug

* output user context

* update shell scripts

* fix db context issue

* repoint admin migrations at db app

* move migrations from admin app to archive folder

* organise docs, add examples

* update

* add link to examples

* PR comment feedback

* add yarn install for db folder

* add access arrangements data

* updated values

* remove db prefix

* add helpdesk user to seed data

* add missing items since latest PR merges to master

Co-authored-by: Mohsen Qureshi <[email protected]>
  • Loading branch information
GuyHarwood and activemq authored Nov 9, 2020
1 parent bead869 commit 7e94fe5
Show file tree
Hide file tree
Showing 933 changed files with 26,920 additions and 3,026 deletions.
3 changes: 3 additions & 0 deletions _sql-archive/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Archive of the migrations from `admin/data/sql`.

This should be removed once the move to the `db` app is settled.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const moment = require('moment')
const fs = require('fs')
const path = require('path')
const commandLineArgs = require('command-line-args')
const logger = require('../../services/log.service').getLogger()
const logger = require('../../admin/services/log.service').getLogger()

const seedsDir = path.join(__dirname, 'seeds')

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7e94fe5

Please sign in to comment.