Skip to content

Commit

Permalink
Merge pull request #2106 from undb-io/release/v1.0.0-107
Browse files Browse the repository at this point in the history
Release version v1.0.0-107
  • Loading branch information
nichenqin authored Oct 21, 2024
2 parents bdeed5d + af3700c commit c45fa22
Show file tree
Hide file tree
Showing 11 changed files with 2,101 additions and 20 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## v1.0.0-107


### 🩹 Fixes

- Fix delete table issue ([2ba0723](https://github.com/undb-io/undb/commit/2ba0723))

### ❤️ Contributors

- Nichenqin ([@nichenqin](http://github.com/nichenqin))

## v1.0.0-106


Expand Down
15 changes: 15 additions & 0 deletions apps/backend/drizzle/0011_serious_marvex.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
PRAGMA foreign_keys=OFF;--> statement-breakpoint
CREATE TABLE `__new_undb_reference_id_mapping` (
`field_id` text NOT NULL,
`table_id` text NOT NULL,
`symmetric_field_id` text,
`foreign_table_id` text NOT NULL,
FOREIGN KEY (`table_id`) REFERENCES `undb_table`(`id`) ON UPDATE no action ON DELETE no action,
FOREIGN KEY (`foreign_table_id`) REFERENCES `undb_table`(`id`) ON UPDATE no action ON DELETE no action
);
--> statement-breakpoint
INSERT INTO `__new_undb_reference_id_mapping`("field_id", "table_id", "symmetric_field_id", "foreign_table_id") SELECT "field_id", "table_id", "symmetric_field_id", "foreign_table_id" FROM `undb_reference_id_mapping`;--> statement-breakpoint
DROP TABLE `undb_reference_id_mapping`;--> statement-breakpoint
ALTER TABLE `__new_undb_reference_id_mapping` RENAME TO `undb_reference_id_mapping`;--> statement-breakpoint
PRAGMA foreign_keys=ON;--> statement-breakpoint
CREATE UNIQUE INDEX `reference_id_mapping_unique_idx` ON `undb_reference_id_mapping` (`field_id`,`table_id`,`symmetric_field_id`,`foreign_table_id`);
Loading

0 comments on commit c45fa22

Please sign in to comment.