public ConnectionFactory() : base("seeds.db", SqliteDialect.Provider) { DialectProvider.GetDateTimeConverter().DateStyle = DateTimeKind.Utc; using (var db = this.Open()) { db.CreateTableIfNotExists <UserSeedEntity>(); } }
public ConnectionFactory() : base("seeds.db", SqliteDialect.Provider) { DialectProvider.GetDateTimeConverter().DateStyle = DateTimeKind.Utc; using (var db = this.Open()) { db.CreateTableIfNotExists <UserSeedEntity>(); if (!db.ColumnExists <UserSeedEntity>(x => x.Version)) { db.AddColumn <UserSeedEntity>(x => x.Version); } db.CreateTableIfNotExists <GuildModEntity>(); db.CreateTableIfNotExists <TournamentChannelEntity>(); } }