mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 16:38:37 +00:00
Store location in seperate table
This commit is contained in:
parent
e95f3a0439
commit
b2428b6ba8
6 changed files with 62 additions and 15 deletions
17
DatabaseMigrations/1.sql
Normal file
17
DatabaseMigrations/1.sql
Normal file
|
@ -0,0 +1,17 @@
|
|||
create table ProfileCardLocations
|
||||
(
|
||||
UserId int not null,
|
||||
LocationX int not null,
|
||||
LocationY int not null
|
||||
);
|
||||
|
||||
create unique index ProfileCardLocations_UserId_uindex
|
||||
on Locations (Id);
|
||||
|
||||
alter table Locations
|
||||
add constraint ProfileCardLocations_pk
|
||||
primary key (Id);
|
||||
|
||||
alter table Users
|
||||
add LocationId int null;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue