Commit bede0c90 authored by Felix Delattre's avatar Felix Delattre
Browse files

Added base table

parent 653897c7
# `GDE Tiles` Database Management
This repository handles the structure and migrations in the `gde_tiles` database.
The database is described through SQL files in the `migrations/` directory.
## Database tables
#### `gde_tiles` - Main `GDE Tiles` information
| column name | data type |
|--------------|--------------------|
| quadkey | text (primary key) |
#### `migrations` - Information about database migrations
Created and managed by [inyuu](https://git.gfz-potsdam.de/dynamicexposure/openbuildingmap/inyuu):
| column name | data type |
|-------------|--------------|
| name | varchar(100) |
| hash | varchar(60) |
| executed_at | timestamp |
## More information
* [Database versioning best practices](https://enterprisecraftsmanship.com/posts/database-versioning-best-practices/)
CREATE TABLE public.gde_tiles
(
quadkey TEXT NOT NULL,
CONSTRAINT quadkey PRIMARY KEY (quadkey)
);
ALTER TABLE public.gde_tiles
OWNER to postgres;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment