Skip to content

Commit

Permalink
Merge pull request #1258 from andrew-bierman/feat/add-offline-maps-table
Browse files Browse the repository at this point in the history
add offline map migration
  • Loading branch information
taronaleksanian authored Sep 22, 2024
2 parents dc1c38d + ee7f111 commit 5ffad7d
Show file tree
Hide file tree
Showing 4 changed files with 1,345 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/migrations/0001_dizzy_the_phantom.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CREATE TABLE `offlineMap` (
`id` text PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`bounds` text,
`minZoom` integer NOT NULL,
`metadata` text,
`owner_id` text,
`created_at` text DEFAULT CURRENT_TIMESTAMP,
`updated_at` text DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (`owner_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
);
Loading

0 comments on commit 5ffad7d

Please sign in to comment.