Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.
/ AP_IMRT_Schema Public archive

Contains SQL schema migrations to support the IMRT application(s)

Notifications You must be signed in to change notification settings

SmarterApp/AP_IMRT_Schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

195 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

!!! IMPORTANT !!! - Archived

This project has been archived and is no longer actively maintained. All code has been migrated to the TIMS project.

AP_IMRT_Schema

Contains SQL schema migrations to support the IMRT application(s). Uses the flyway gradle plugin.

Linked Applications

IMRT consists of three main projects with ingest being one of the three. We recommend looking at the README's in the other project if you do not find what you need here. The other two projects are:

Documentation

Common Tasks

Developer Notes

This section covers conventions for adding SQL migrations to the project.

SQL Conventions

SQL files should conform to the following conventions:

  • Use all lowercase letters for names
  • Separate words using underscores
  • Foreign key names should follow the format <fk table>_<fk column>
  • Timestamp field names should end is _at, for example 'created_at'
  • Timestamp columns should use the timestamptz type
  • Columns denoting authorship should end in _by, for example 'updated_by'
  • Each table should contain created_at, updated_at, and updated_by audit fields.

Migrations

  • Migrations scripts should be added to the directory src/main/resources/db/migration
  • Migration scripts should be named according to the flyway naming conventions defined here: https://flywaydb.org/documentation/migrations#naming
  • The "Description" component of the file name should end with either '_ddl' (data definition language) or '_dml' (data manipulation language), for example V1_imrt_ddl.sql

About

Contains SQL schema migrations to support the IMRT application(s)

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 6