Giter Site home page Giter Site logo

jpoehls / dotnetmigrations-contrib Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 1.27 MB

This project will be the home for various extensions for the DotNetMigrations project which allows for custom commands and logs to be written and used. DotNetMigrations is a utility that provides a way to provide version control and migrate your database scripts in a simple and extensible way now thanks to the Managed Extensibility Framework. By using the API provided by DotNetMigrations, anyone can create new commands and logging functionality for whatever a person's needs may be.

C# 100.00%

dotnetmigrations-contrib's Introduction

History
=======

 * v0.82
   First official build of the contrib project. Depends on DNM 0.82.
   Adds the PersistentMigrations and TextLog plugins.

PersistentMigrations plugin
===========================

 * Specify folders that contain migration scripts that should be run
   everytime the schema is migrated. (persistentMigrateFolders app setting)

 * Everytime a migrate command is run, all persistent migration scripts are run
   in a separate transaction.

 * Run the 'pmigrate' command directly to execute only the persistent migration scripts.

 * Persistent migrations work great for functions, stored procedures and even views.

   Because persistent migration scripts allow you to keep the full history of an object
   in a single file (rather than each change to the object being in a separate file),
   you can leverage your source contorl's diff and history features
   to manage those object scripts just like you would other source code.

 * Use the ##DNM:VERSION## token in your persistent migration scripts to decide which
   part of the script should run. Here is an example script that drops a table
   if it already exists and only recreates it if the database version is greater than 0.

   IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'People')
   BEGIN
     DROP TABLE [People]
   END

   IF ##DNM:VERSION## > 0
   BEGIN
     CREATE TABLE [People] ([Name] varchar(100))
   END


TextLog plugin
==============

 * Output program information to a text file instead of to the console (STDOUT).

dotnetmigrations-contrib's People

Contributors

jpoehls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hankinabag

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.