github.com/supabase/cli@v1.168.1/internal/testing/pgtest/helper.go (about) 1 package pgtest 2 3 import ( 4 "github.com/supabase/cli/internal/migration/history" 5 ) 6 7 func MockMigrationHistory(conn *MockConn) { 8 conn.Query(history.SET_LOCK_TIMEOUT). 9 Query(history.CREATE_VERSION_SCHEMA). 10 Reply("CREATE SCHEMA"). 11 Query(history.CREATE_VERSION_TABLE). 12 Reply("CREATE TABLE"). 13 Query(history.ADD_STATEMENTS_COLUMN). 14 Reply("ALTER TABLE"). 15 Query(history.ADD_NAME_COLUMN). 16 Reply("ALTER TABLE") 17 }