Modification de la gestion des adresses
This commit is contained in:
55
Migrations/202012032233531_V1.cs
Normal file
55
Migrations/202012032233531_V1.cs
Normal file
@ -0,0 +1,55 @@
|
||||
namespace Hermes.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class V1 : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateTable(
|
||||
"dbo.Citoyens",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(nullable: false, identity: true),
|
||||
Civilite = c.String(maxLength: 4000),
|
||||
Nom = c.String(maxLength: 4000),
|
||||
NomNaissance = c.String(maxLength: 4000),
|
||||
Prenom = c.String(maxLength: 4000),
|
||||
DateNaissance = c.DateTime(),
|
||||
Profession = c.String(maxLength: 4000),
|
||||
TypeResidence = c.Boolean(nullable: false),
|
||||
Mail = c.String(maxLength: 4000),
|
||||
Tel = c.String(maxLength: 4000),
|
||||
TelPort = c.String(maxLength: 4000),
|
||||
Quartier = c.String(maxLength: 4000),
|
||||
Adresse = c.String(maxLength: 4000),
|
||||
AdresseBatiment = c.String(maxLength: 4000),
|
||||
AdresseExt = c.String(maxLength: 4000),
|
||||
AdresseExtCP = c.String(maxLength: 4000),
|
||||
AdresseExtVille = c.String(maxLength: 4000),
|
||||
DateCreation = c.DateTime(nullable: false),
|
||||
DateModification = c.DateTime(nullable: false),
|
||||
})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
CreateTable(
|
||||
"dbo.Preferences",
|
||||
c => new
|
||||
{
|
||||
Id = c.Int(nullable: false, identity: true),
|
||||
VilleCP = c.String(maxLength: 4000),
|
||||
Ville = c.String(maxLength: 4000),
|
||||
SmsApiKey = c.String(maxLength: 4000),
|
||||
})
|
||||
.PrimaryKey(t => t.Id);
|
||||
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropTable("dbo.Preferences");
|
||||
DropTable("dbo.Citoyens");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user