コード例 #1
0
        public override void Down()
        {
            try
            {
                MigrationUtils.TruncateTable(HandsPlayersTable);
            }
            catch (Exception e)
            {
                LogProvider.Log.Error(this, "Rollback of Migration #29 failed.", e);
                throw;
            }

            LogProvider.Log.Info("Rollback of Migration #29 executed.");
        }
コード例 #2
0
        public override void Up()
        {
            LogProvider.Log.Info("Preparing migration #29.");

            try
            {
                MigrationUtils.TruncateTable(HandsPlayersTable);
                FillHandsPlayersTable();
            }
            catch (Exception e)
            {
                LogProvider.Log.Error(this, "Migration #29 failed.", e);
                throw;
            }

            LogProvider.Log.Info("Migration #29 executed.");
        }
コード例 #3
0
        public override void Up()
        {
            LogProvider.Log.Info("Preparing migration #27.");

            try
            {
                MigrationUtils.TruncateTable(playerGameInfoTableName);
                FillPlayerGameInfoTable();
            }
            catch (Exception e)
            {
                LogProvider.Log.Error(this, "Migration #27 failed.", e);
                throw;
            }

            LogProvider.Log.Info("Migration #27 executed.");
        }