lint init db
This commit is contained in:
parent
eb50553931
commit
fee18fc8c3
1 changed files with 11 additions and 11 deletions
22
initDb.sql
22
initDb.sql
|
@ -1,12 +1,12 @@
|
||||||
CREATE DATABASE ruscomap;
|
CREATE DATABASE ruscomap;
|
||||||
CREATE USER 'ruscone'@'localhost' IDENTIFIED BY 'password';
|
CREATE USER 'ruscone'@'localhost' IDENTIFIED BY 'password';
|
||||||
GRANT ALL PRIVILEGES ON ruscomap.* TO 'ruscone'@'localhost';
|
GRANT ALL PRIVILEGES ON ruscomap.* TO 'ruscone'@'localhost';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
|
|
||||||
CREATE TABLE ruscomap.markers (
|
CREATE TABLE ruscomap.markers (
|
||||||
name VARCHAR(256) NOT NULL,
|
name VARCHAR(256) NOT NULL,
|
||||||
description VARCHAR(1024),
|
description VARCHAR(1024),
|
||||||
filename VARCHAR(256) NOT NULL,
|
filename VARCHAR(256) NOT NULL,
|
||||||
coordinate POINT NOT NULL,
|
coordinate POINT NOT NULL,
|
||||||
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||||
);
|
);
|
Loading…
Reference in a new issue