<commit_before># Migr8

Execute the migrations - either in a dedicated command line app, or - my favorite - whenever your app starts up, just before it connects to the database:

	Migrate.Database("server=.;initial catalog=whatever;integrated secutiry=sspi");

and then, elsewhere in the calling assembly, you define these bad boys:

    [Migration(1, "Create table for the Timeout Manager to use")]
    class CreateRebusTimeoutsTable : ISqlMigration
    {
        public string Sql
        {
            get { return @"

                CREATE TABLE [dbo].[timeouts](
	                [time_to_return] [datetime] NOT NULL,
	                [correlation_id] [nvarchar](200) NOT NULL,
	                [saga_id] [uniqueidentifier] NOT NULL,
	                [reply_to] [nvarchar](200) NOT NULL,
	                [custom_data] [nvarchar](max) NULL,
                 CONSTRAINT [PK_timeouts] PRIMARY KEY CLUSTERED 
                (
	                [time_to_return] ASC,
	                [correlation_id] ASC,
	                [reply_to] ASC
                )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, 
                    IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, 
                    ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
                ) ON [PRIMARY]

				"; 
			}
        }
    }

    [Migration(2, "Create a table for the Timeout Manager to use")]
    class CreateRebusSubscriptionsTable : ISqlMigration
    {<commit_msg>updated readme again<commit_after># Migr8

Execute the migrations - either in a dedicated command line app, or - my favorite - whenever your app starts up, just before it connects to the database:

	Migrate.Database("server=.;initial catalog=whatever;integrated secutiry=sspi");

and then, elsewhere in the calling assembly, you define these bad boys:

    [Migration(1, "Create table for the Timeout Manager to use")]
    class CreateRebusTimeoutsTable : ISqlMigration
    {
        public string Sql
        {
            get { return @"

                CREATE TABLE [dbo].[timeouts](
	                [time_to_return] [datetime] NOT NULL,
	                [correlation_id] [nvarchar](200) NOT NULL,
	                [saga_id] [uniqueidentifier] NOT NULL,
	                [reply_to] [nvarchar](200) NOT NULL,
	                [custom_data] [nvarchar](max) NULL,
                 CONSTRAINT [PK_timeouts] PRIMARY KEY CLUSTERED 
                (
	                [time_to_return] ASC,
	                [correlation_id] ASC,
	                [reply_to] ASC
                )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, 
                    IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, 
                    ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
                ) ON [PRIMARY]

				"; 
			}
        }
    }

    [Migration(2, "Create a table for Rebus publishers to use")]
    class CreateRebusSubscriptionsTable : ISqlMigration
    {
{'fraction_non_alphanumeric': 0.08119361554476058, 'fraction_numerical': 0.006245662734212352, 'mean_word_length': 1.9358452138492872, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6375199', 'n_tokens_mistral': 912, 'n_tokens_neox': 804, 'n_words': 241}