-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
314 lines (297 loc) · 10.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Fluent migrations framework for .NET | FluentMigrator documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Fluent migrations framework for .NET | FluentMigrator documentation ">
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="stylesheet" href="styles/docfx.vendor.min.css">
<link rel="stylesheet" href="styles/docfx.css">
<link rel="stylesheet" href="styles/main.css">
<meta property="docfx:navrel" content="toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:rel" content="">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">
<img id="logo" class="svg" src="images/logo.svg" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list">Search Results for <span></span></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="article row grid">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="">
<h1 id="fluent-migrations-framework-for-net-apache-20-license">Fluent migrations framework for .NET <a href="https://github.com/fluentmigrator/fluentmigrator/blob/master/LICENSE.txt"><img src="https://img.shields.io/github/license/fluentmigrator/fluentmigrator.svg" alt="(Apache 2.0 License)"></a></h1>
<p>Fluent Migrator is a migration framework for .NET much like Ruby on Rails Migrations. Migrations are a structured way to alter your database schema and are an alternative to creating lots of sql scripts that have to be run manually by every developer involved. Migrations solve the problem of evolving a database schema for multiple databases (for example, the developer's local database, the test database and the production database). Database schema changes are described in classes written in C# that can be checked into a version control system.</p>
<h1 id="how-to-use-it">How to use it</h1>
<ol>
<li>Database-agnostic migrations: <a class="xref" href="articles/quickstart.html">Quickstart</a></li>
<li>Database-specific migrations:
<ol>
<li><a class="xref" href="articles/extensions/sql-server-extensions.html">SQL Server Extensions</a></li>
<li><a class="xref" href="articles/extensions/postgres-extensions.html">Postgres Extensions</a></li>
</ol>
</li>
<li><a class="xref" href="articles/faq.html">Frequently Asked Questions</a></li>
<li><a class="xref" href="articles/comparison-to-entity-framework-migrations.html">FluentMigrator Comparison to Entity Framework Core Migrations</a></li>
</ol>
<h1 id="what-does-it-look-like">What does it look like?</h1>
<p>This is an example of a database-agnostic migration:</p>
<pre><code class="lang-cs" name="20180430121800_AddLogTable.cs" title="Your first migration">using FluentMigrator;
namespace test
{
[Migration(20180430121800)]
public class AddLogTable : Migration
{
public override void Up()
{
Create.Table("Log")
.WithColumn("Id").AsInt64().PrimaryKey().Identity()
.WithColumn("Text").AsString();
}
public override void Down()
{
Delete.Table("Log");
}
}
}
</code></pre><h1 id="current-release">Current Release</h1>
<ul>
<li><a href="https://github.com/fluentmigrator/fluentmigrator/releases">Release Notes</a></li>
</ul>
<h1 id="upgrade-guides">Upgrade guides</h1>
<ul>
<li><a class="xref" href="articles/guides/upgrades/guide-3.1-to-3.2.html">3.1 to 3.2</a></li>
<li><a class="xref" href="articles/guides/upgrades/guide-3.0-to-3.1.html">3.0 to 3.1</a></li>
<li><a class="xref" href="articles/guides/upgrades/guide-2.0-to-3.0.html">2.x to 3.0</a></li>
</ul>
<h1 id="supported-databases">Supported databases</h1>
<p>For the <a href="https://github.com/fluentmigrator/fluentmigrator/releases/latest">current release</a> these are the supported databases:</p>
<table>
<thead>
<tr>
<th>Database</th>
<th>Identifier</th>
<th>Alternative identifier(s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Microsoft SQL Server 2019</td>
<td>SqlServer2016<sup>(1)</sup></td>
<td>SqlServer</td>
</tr>
<tr>
<td>Microsoft SQL Server 2017</td>
<td>SqlServer2016<sup>(2)</sup></td>
<td>SqlServer</td>
</tr>
<tr>
<td>Microsoft SQL Server 2016</td>
<td>SqlServer2016</td>
<td>SqlServer</td>
</tr>
<tr>
<td>Microsoft SQL Server 2014</td>
<td>SqlServer2014</td>
<td>SqlServer</td>
</tr>
<tr>
<td>Microsoft SQL Server 2012</td>
<td>SqlServer2012</td>
<td>SqlServer</td>
</tr>
<tr>
<td>Microsoft SQL Server 2008</td>
<td>SqlServer2008</td>
<td>SqlServer</td>
</tr>
<tr>
<td>Microsoft SQL Server 2005</td>
<td>SqlServer2005</td>
<td>SqlServer</td>
</tr>
<tr>
<td>Microsoft SQL Server 2000</td>
<td>SqlServer2000</td>
<td>SqlServer</td>
</tr>
<tr>
<td><del>Microsoft SQL Server Compact Edition</del><sup>(3)</sup></td>
<td><del>SqlServerCe</del></td>
<td><del>SqlServer</del></td>
</tr>
<tr>
<td>PostgreSQL</td>
<td>Postgres</td>
<td>PostgreSQL</td>
</tr>
<tr>
<td>PostgreSQL 9.2</td>
<td>Postgres92</td>
<td>PostgreSQL92</td>
</tr>
<tr>
<td>PostgreSQL 10.0</td>
<td>PostgreSQL10_0</td>
<td>PostgreSQL</td>
</tr>
<tr>
<td>PostgreSQL 11.0</td>
<td>PostgreSQL11_0</td>
<td>PostgreSQL</td>
</tr>
<tr>
<td>MySQL 4</td>
<td>MySql4</td>
<td>MySql</td>
</tr>
<tr>
<td>MySQL 5</td>
<td>MySql5</td>
<td>MySql, MariaDB</td>
</tr>
<tr>
<td>Oracle</td>
<td>Oracle</td>
<td></td>
</tr>
<tr>
<td>Oracle (managed ADO.NET)</td>
<td>OracleManaged</td>
<td>Oracle</td>
</tr>
<tr>
<td>Oracle (DotConnect ADO.NET)</td>
<td>OracleDotConnect</td>
<td>Oracle</td>
</tr>
<tr>
<td>Microsoft JET Engine (Access)</td>
<td>Jet</td>
<td></td>
</tr>
<tr>
<td>SQLite</td>
<td>Sqlite</td>
<td></td>
</tr>
<tr>
<td>Firebird</td>
<td>Firebird</td>
<td></td>
</tr>
<tr>
<td>Amazon Redshift</td>
<td>Redshift</td>
<td></td>
</tr>
<tr>
<td>SAP Hana</td>
<td>Hana</td>
<td></td>
</tr>
<tr>
<td><del>SAP SQL Anywhere</del><sup>(4)</sup></td>
<td><del>SqlAnywhere16</del></td>
<td><del>SqlAnywhere</del></td>
</tr>
<tr>
<td>DB2</td>
<td>DB2</td>
<td></td>
</tr>
<tr>
<td>DB2 iSeries</td>
<td>DB2 iSeries</td>
<td>DB2</td>
</tr>
</tbody>
</table>
<ul>
<li><sup>(1)</sup> All integration tests ran without error against an SQL Server 2019 using the SqlServer2016 dialect.</li>
<li><sup>(2)</sup> All integration tests ran without error against an SQL Server 2017 using the SqlServer2016 dialect.</li>
<li><sup>(3)</sup> Support for Microsoft SQL Server Compact Edition is being dropped due to Microsoft end-of-life support date passing.</li>
<li><sup>(4)</sup> Support for SAP SQL Anywhere is being dropped due to SAP not supporting a .NET Core / .NET 5 database driver.</li>
</ul>
<h1 id="more-information-on-fluentmigrator">More Information on FluentMigrator</h1>
<ul>
<li><a class="xref" href="articles/faq.html">FAQ</a></li>
<li>Sean Chambers on the <a href="http://herdingcode.com/herding-code-70">Herding Code podcast</a></li>
</ul>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/fluentmigrator/documentation/blob/master/index.md/#L1" class="contribution-link">Edit this page</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<h5>In this article</h5>
<div></div>
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
<table border='0'><tr><td><span>Copyright © 2018 Fluent Migrator Project<br>Generated by <strong>DocFX</strong></span></td><td><a rel='license' href='http://creativecommons.org/licenses/by-sa/4.0/'><img alt='Creative Commons License' style='border-width:0' src='https://i.creativecommons.org/l/by-sa/4.0/88x31.png'></a><br><span xmlns:dct='http://purl.org/dc/terms/' property='dct:title'>FluentMigrator Documentation</span> by <a xmlns:cc='http://creativecommons.org/ns#' href='https://fluentmigrator.github.io' property='cc:attributionName' rel='cc:attributionURL'>FluentMigrator Project</a> is licensed under a <a rel='license' href='http://creativecommons.org/licenses/by-sa/4.0/'>Creative Commons Attribution-ShareAlike 4.0 International License</a>.</td></tr></table>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="styles/docfx.vendor.min.js"></script>
<script type="text/javascript" src="styles/docfx.js"></script>
<script type="text/javascript" src="styles/main.js"></script>
</body>
</html>