36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace dotbot.Migrations
|
|
{
|
|
public partial class UserLocations : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "UserLocations",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<ulong>(nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
City = table.Column<string>(nullable: true),
|
|
CityId = table.Column<int>(nullable: false),
|
|
Lat = table.Column<float>(nullable: false),
|
|
Lng = table.Column<float>(nullable: false),
|
|
TimeZone = table.Column<string>(nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_UserLocations", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "UserLocations");
|
|
}
|
|
}
|
|
}
|