mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
added better db migration support than what Subsonic provides out of the box.
This commit is contained in:
parent
180da4c82a
commit
ce63f05512
91 changed files with 7218 additions and 48 deletions
50
Migrator.net/Migrator.Framework/ColumnProperty.cs
Normal file
50
Migrator.net/Migrator.Framework/ColumnProperty.cs
Normal file
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
|
||||
namespace Migrator.Framework
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents a table column properties.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum ColumnProperty
|
||||
{
|
||||
None = 0,
|
||||
/// <summary>
|
||||
/// Null is allowable
|
||||
/// </summary>
|
||||
Null = 1,
|
||||
/// <summary>
|
||||
/// Null is not allowable
|
||||
/// </summary>
|
||||
NotNull = 2,
|
||||
/// <summary>
|
||||
/// Identity column, autoinc
|
||||
/// </summary>
|
||||
Identity = 4,
|
||||
/// <summary>
|
||||
/// Unique Column
|
||||
/// </summary>
|
||||
Unique = 8,
|
||||
/// <summary>
|
||||
/// Indexed Column
|
||||
/// </summary>
|
||||
Indexed = 16,
|
||||
/// <summary>
|
||||
/// Unsigned Column
|
||||
/// </summary>
|
||||
Unsigned = 32,
|
||||
/// <summary>
|
||||
/// Foreign Key
|
||||
/// </summary>
|
||||
ForeignKey = Unsigned | Null,
|
||||
/// <summary>
|
||||
/// Primary Key
|
||||
/// </summary>
|
||||
PrimaryKey = 64 | Unsigned | NotNull,
|
||||
/// <summary>
|
||||
/// Primary key. Make the column a PrimaryKey and unsigned
|
||||
/// </summary>
|
||||
PrimaryKeyWithIdentity = PrimaryKey | Identity
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue