feat: add party-size queueing and call modes
This commit is contained in:
@@ -45,8 +45,28 @@ func TestPostgresMigrationAndMaintenanceIntegration(t *testing.T) {
|
||||
if err := sqlDB.QueryRowContext(ctx, `SELECT count(*) FROM schema_migrations`).Scan(&migrationCount); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if migrationCount < 8 {
|
||||
t.Fatalf("migration count = %d, want at least 8", migrationCount)
|
||||
if migrationCount < 12 {
|
||||
t.Fatalf("migration count = %d, want at least 12", migrationCount)
|
||||
}
|
||||
var experiencedPeopleStartColumn string
|
||||
if err := sqlDB.QueryRowContext(ctx, `
|
||||
SELECT is_nullable
|
||||
FROM information_schema.columns
|
||||
WHERE table_schema = 'public' AND table_name = 'projects' AND column_name = 'experienced_people_start'`).Scan(&experiencedPeopleStartColumn); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if experiencedPeopleStartColumn != "NO" {
|
||||
t.Fatalf("experienced_people_start is_nullable = %q, want NO", experiencedPeopleStartColumn)
|
||||
}
|
||||
var partySizeNullable string
|
||||
if err := sqlDB.QueryRowContext(ctx, `
|
||||
SELECT is_nullable
|
||||
FROM information_schema.columns
|
||||
WHERE table_schema = 'public' AND table_name = 'queue_tickets' AND column_name = 'party_size'`).Scan(&partySizeNullable); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if partySizeNullable != "NO" {
|
||||
t.Fatalf("party_size is_nullable = %q, want NO", partySizeNullable)
|
||||
}
|
||||
var nullable string
|
||||
if err := sqlDB.QueryRowContext(ctx, `
|
||||
|
||||
Reference in New Issue
Block a user