You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since folks might use different stripe accounts, might be worthwhile to run stripe login first to make sure folks are logged into their correct account.
The text was updated successfully, but these errors were encountered:
async function seed() {
try {
console.log('Seeding database...');
// Enable the `citext` extension
await sql`
CREATE EXTENSION IF NOT EXISTS citext;
`;
// Ensure the `users` table uses `citext` for the email column
await sql`
ALTER TABLE users
ALTER COLUMN email TYPE citext;
`;
// Insert seed data with `ON CONFLICT` to handle duplicates
await sql`
INSERT INTO users (email, name, password)
VALUES
('[email protected]', 'Test User', 'hashedpassword'),
('[email protected]', 'Admin User', 'hashedpassword')
ON CONFLICT (email) DO NOTHING;
`;
console.log('Seeding completed successfully.');
} catch (error) {
console.error('Error during seed process:', error);
} finally {
sql.end(); // Close the database connection
}
}
Since folks might use different stripe accounts, might be worthwhile to run
stripe login
first to make sure folks are logged into their correct account.The text was updated successfully, but these errors were encountered: