From f6e9b0f32d42e34527f55cd4129c74254f0abeda Mon Sep 17 00:00:00 2001 From: Fankai Liu Date: Sat, 15 Jun 2024 22:12:48 +0800 Subject: [PATCH] fix: fix doc about mysql sql --- src/template/data/init_sql_sql.hbs | 2 +- src/template/data/table_mysql.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/template/data/init_sql_sql.hbs b/src/template/data/init_sql_sql.hbs index 6fb5894..a540ef7 100644 --- a/src/template/data/init_sql_sql.hbs +++ b/src/template/data/init_sql_sql.hbs @@ -9,5 +9,5 @@ {{create_success_diesel__mysql_or_pgsql_fist_use}} {{/if}} BEGIN; -INSERT INTO "users" ("id", "username", "password") VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A'); +INSERT INTO users (id, username, password) VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A'); COMMIT; diff --git a/src/template/data/table_mysql.sql b/src/template/data/table_mysql.sql index 6465896..7debf73 100644 --- a/src/template/data/table_mysql.sql +++ b/src/template/data/table_mysql.sql @@ -5,5 +5,5 @@ username VARCHAR(255) NOT NULL UNIQUE, password VARCHAR(511) NOT NULL ); BEGIN; -INSERT IGNORE INTO "users" ("id", "username", "password") VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A'); +INSERT INTO users (id, username, password) VALUES ('cdd0e080-5bb1-4442-b6f7-2ba60dbd0555', 'zhangsan', '$argon2id$v=19$m=19456,t=2,p=1$rcosL5pOPdA2c7i4ZuLA4Q$s0JGh78UzMmu1qZMpVUA3b8kWYLXcZhw7uBfwhYDJ4A'); COMMIT; \ No newline at end of file