Repo created
This commit is contained in:
parent
d6b5d53060
commit
d90a1dc8df
2145 changed files with 210227 additions and 2 deletions
14
data/src/main/sqldelight/breezyweather/migrations/13.sqm
Normal file
14
data/src/main/sqldelight/breezyweather/migrations/13.sqm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
CREATE TABLE normals(
|
||||
_id INTEGER NOT NULL PRIMARY KEY,
|
||||
location_formatted_id TEXT NOT NULL,
|
||||
|
||||
month INTEGER NOT NULL,
|
||||
daytime_temperature REAL,
|
||||
nighttime_temperature REAL,
|
||||
|
||||
UNIQUE(location_formatted_id, month) ON CONFLICT REPLACE,
|
||||
FOREIGN KEY(location_formatted_id) REFERENCES locations (formatted_id)
|
||||
ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE INDEX normals_location_formatted_id_index ON normals(location_formatted_id);
|
||||
Loading…
Add table
Add a link
Reference in a new issue