Git Product home page Git Product logo

usgo-sql-schemas's Introduction

Short Description

Schema's for the USGO Databases

AGAGD Schemas

Description File(s)
AGAGD master schema with zero dates removed schema.sql

AGAGD Legacy Schemas

Description File(s)
AGAGD schema create statements legacy/usgo-agagd-scheme-20200913.sql
AGAGD schema with zero dates removed legacy/usgo-agagd-scheme-no-zero-dates-20200913.sql

AGAGD Updates

Description Files(s) Updated on schema.sql Updated on Prodution Updated on Test
AGAGD update for the ratings table 20201009_update_ratings_table.sql 2020-10-09 2020-10-27 2020-10-12
AGAGD update for the members_view 20201025_replace_member_view.sql 2020-10-25 2020-11-14 2020-11-14

Method

Provided by Anna Wiggins via Slack

  1. When we need to do a schema change, write a sql file that produces the changes we want.
  2. Put that in an updates directory, prefixed with the date. e.g. 20201005-drop-all-tables.sql
  3. Spin up a test database with the current schema.sql loaded in, and run the update file against it.
  4. Dump that database schema back into schema.sql.

Notes

  • Current master schema.sql is based off legacy/usgo-agagd-scheme-no-zero-dates-20200913.sql. The prod will continue to use zero dates which will be removed later.

usgo-sql-schemas's People

Contributors

michaelhiiva avatar vash3g avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.