From f04b33636d7779fc4d9227e3674c1939ad012595 Mon Sep 17 00:00:00 2001 From: Germain Italic <17506424+germain-italic@users.noreply.github.com> Date: Sat, 25 Nov 2023 23:02:49 +0400 Subject: [PATCH] Feature/import schema (#70) * remove empty trailing spaces * add a button to create schema on the relations page, aligned with flex * import an sql schema from copy/pasting * option to disable foreign key checks and drop existing tables * read a list of .sql files to import as a schema * wording --- .gitignore | 4 +- core/relations.php | 4 +- core/schema.php | 140 +++++++++++++++++++++++++++++++++++++++++++++ schema/.gitkeep | 0 4 files changed, 146 insertions(+), 2 deletions(-) create mode 100644 core/schema.php create mode 100644 schema/.gitkeep diff --git a/.gitignore b/.gitignore index 6bd94b5..746b147 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -core/app/ \ No newline at end of file +core/app/ +schema/* +!schema/.gitkeep \ No newline at end of file diff --git a/core/relations.php b/core/relations.php index e349794..29b1c2d 100644 --- a/core/relations.php +++ b/core/relations.php @@ -246,7 +246,9 @@