Add human-led conversation learning loop
This commit is contained in:
1 parent
bc42c55555
commit
687abab82b
52 files changed
+2112
-53
No files matched your search
@@ -513,7 +513,8 @@ describe('growth migration', () => {
|
||||
db.exec('DROP TABLE account_growth_comments');
|
||||
db.exec('DROP TABLE account_growth_subreddits');
|
||||
db.exec('DROP TABLE account_growth_settings');
|
||||
db.pragma(`user_version = ${version - GROWTH_MIGRATION_COUNT}`);
|
||||
// Also rewind the later conversation-learning migration.
|
||||
db.pragma(`user_version = ${version - GROWTH_MIGRATION_COUNT - 1}`);
|
||||
}
|
||||
|
||||
it('upgrades a database created before growth existed', () => {
|
||||
@@ -539,8 +540,9 @@ describe('growth migration', () => {
|
||||
const version = db.pragma('user_version', { simple: true }) as number;
|
||||
db.exec('ALTER TABLE account_growth_settings DROP COLUMN daily_limit');
|
||||
// Rewind the daily-limit migration and every browsing migration that now
|
||||
// follows it so the upgrade replays against the old growth row shape.
|
||||
db.pragma(`user_version = ${version - 6}`);
|
||||
// follows it, plus conversation learning, so the upgrade replays against
|
||||
// the old growth row shape.
|
||||
db.pragma(`user_version = ${version - 7}`);
|
||||
insertAccount(db, ACCOUNT);
|
||||
// Seed a row with the old shape so the upgrade runs against real data.
|
||||
db.prepare(`
|
||||
|
||||
Reference in new issue
Block a user