12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Waaagh.Migrations {
- /// <inheritdoc />
- public partial class InitialCreate: Migration {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder) {
- migrationBuilder.CreateTable(
- name: "Message",
- columns: table => new {
- Key = table.Column<int>(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- Channel = table.Column<short>(type: "INTEGER", nullable: false),
- Reply = table.Column<bool>(type: "INTEGER", nullable: false),
- Name = table.Column<string>(type: "TEXT", nullable: false),
- Content = table.Column<string>(type: "TEXT", nullable: false)
- },
- constraints: table => {
- table.PrimaryKey("PK_Message", x => x.Key);
- });
- migrationBuilder.CreateTable(
- name: "Scenarios",
- columns: table => new {
- Id = table.Column<int>(type: "INTEGER", nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- Name = table.Column<string>(type: "TEXT", nullable: false),
- Description = table.Column<string>(type: "TEXT", nullable: false),
- LastUpdateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
- Version = table.Column<int>(type: "INTEGER", nullable: false),
- IsLegacy = table.Column<bool>(type: "INTEGER", nullable: false)
- },
- constraints: table => {
- table.PrimaryKey("PK_Scenarios", x => x.Id);
- });
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder) {
- migrationBuilder.DropTable(
- name: "Message");
- migrationBuilder.DropTable(
- name: "Scenarios");
- }
- }
- }
|