Skip to content

Commit

Permalink
Merge pull request #2127 from undb-io/release/v1.0.0-115
Browse files Browse the repository at this point in the history
Release version v1.0.0-115
  • Loading branch information
nichenqin authored Nov 7, 2024
2 parents fe7bc63 + 9efc893 commit f0055e2
Show file tree
Hide file tree
Showing 19 changed files with 2,287 additions and 150 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-115


### 🩹 Fixes

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

### ❤️ Contributors

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

## v1.0.0-114


Expand Down
24 changes: 24 additions & 0 deletions apps/backend/drizzle/0013_lovely_mordo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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
);
--> 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`);--> statement-breakpoint
CREATE TABLE `__new_undb_rollup_id_mapping` (
`field_id` text NOT NULL,
`table_id` text NOT NULL,
`rollup_id` text NOT NULL,
`rollup_table_id` text NOT NULL,
PRIMARY KEY(`field_id`, `rollup_id`)
);
--> statement-breakpoint
INSERT INTO `__new_undb_rollup_id_mapping`("field_id", "table_id", "rollup_id", "rollup_table_id") SELECT "field_id", "table_id", "rollup_id", "rollup_table_id" FROM `undb_rollup_id_mapping`;--> statement-breakpoint
DROP TABLE `undb_rollup_id_mapping`;--> statement-breakpoint
ALTER TABLE `__new_undb_rollup_id_mapping` RENAME TO `undb_rollup_id_mapping`;
Loading

0 comments on commit f0055e2

Please sign in to comment.