From 5070f05c8db6ceb69e1286da061c65a803b3ae3b Mon Sep 17 00:00:00 2001 From: pk-72 Date: Fri, 19 Apr 2024 15:16:31 +0300 Subject: [PATCH] +adding example project to database --- .../Migration_017_ExampleProject.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 SpecBox.Migrations/Migration_017_ExampleProject.cs diff --git a/SpecBox.Migrations/Migration_017_ExampleProject.cs b/SpecBox.Migrations/Migration_017_ExampleProject.cs new file mode 100755 index 0000000..4229402 --- /dev/null +++ b/SpecBox.Migrations/Migration_017_ExampleProject.cs @@ -0,0 +1,21 @@ +using System.Data; +using ThinkingHome.Migrator.Framework; +using ThinkingHome.Migrator.Framework.Extensions; + +namespace SpecBox.Migrations +{ + [Migration(17)] + public class Migration_017_ExampleProject: Migration + { + public override void Apply() + { + Database.Insert("Project", new[] {"Code", "Title", "Description"}, new[] {"id", "id", "id"}); + } + + public override void Revert() + { + Database.Delete("Project", "code='id'"); + } + + } +}