Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

0009_strong_marten_broadcloak.sql 703 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  1. PRAGMA foreign_keys=off;--> statement-breakpoint
  2. -- Create a new table without the provider_id column
  3. CREATE TABLE `new_eval_results` AS SELECT * FROM `eval_results`;--> statement-breakpoint
  4. -- Drop the provider_id column from the new table
  5. ALTER TABLE `new_eval_results` DROP COLUMN `provider_id`;--> statement-breakpoint
  6. -- Drop the old table
  7. DROP TABLE `eval_results`;--> statement-breakpoint
  8. -- Rename the new table to the original name
  9. ALTER TABLE `new_eval_results` RENAME TO `eval_results`;--> statement-breakpoint
  10. -- The rest of your migration remains the same
  11. DROP TABLE `evals_to_providers`;--> statement-breakpoint
  12. DROP TABLE `providers`;--> statement-breakpoint
  13. PRAGMA foreign_keys=on;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...