diff options
| author | Michael <[email protected]> | 2017-03-20 16:45:17 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-20 16:45:17 -0400 |
| commit | cdc61eb4ea5309769ad4db84d92594e4dc3dff67 (patch) | |
| tree | a8297a7aecc4376f07a497a5e02ab5ff165bfbd3 /Project-Unite/Migrations/201703172305217_auditlogs.cs | |
| parent | d9f475e1f33bbf39ca0d79d7a6b0c2fd501b4f2d (diff) | |
| download | project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.gz project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.tar.bz2 project-unite-cdc61eb4ea5309769ad4db84d92594e4dc3dff67.zip | |
Initial commit (azure deploy test)
Diffstat (limited to 'Project-Unite/Migrations/201703172305217_auditlogs.cs')
| -rw-r--r-- | Project-Unite/Migrations/201703172305217_auditlogs.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Project-Unite/Migrations/201703172305217_auditlogs.cs b/Project-Unite/Migrations/201703172305217_auditlogs.cs new file mode 100644 index 0000000..bdac4bc --- /dev/null +++ b/Project-Unite/Migrations/201703172305217_auditlogs.cs @@ -0,0 +1,29 @@ +namespace Project_Unite.Migrations +{ + using System; + using System.Data.Entity.Migrations; + + public partial class auditlogs : DbMigration + { + public override void Up() + { + CreateTable( + "dbo.AuditLogs", + c => new + { + Id = c.String(nullable: false, maxLength: 128), + Level = c.Int(nullable: false), + Timestamp = c.DateTime(nullable: false), + UserId = c.String(), + Description = c.String(), + }) + .PrimaryKey(t => t.Id); + + } + + public override void Down() + { + DropTable("dbo.AuditLogs"); + } + } +} |
