nikolai 3 years ago
parent
commit
b2a98ca105
2 changed files with 13 additions and 1 deletions
  1. 12 0
      src-php/var/bak/backup.sql
  2. 1 1
      var/etc/internship/app.ini

+ 12 - 0
src-php/var/bak/backup.sql

@@ -0,0 +1,12 @@
+-- Mysql Backup of internship-playground
+-- Date 2023-05-01T12:38:25+02:00
+-- Backup by nikolai
+
+DROP TABLE IF EXISTS `article`;
+CREATE TABLE `article` (
+        `id` INT NOT NULL AUTO_INCREMENT,
+        `categoryName` VARCHAR(255) NULL DEFAULT NULL,
+        `title` VARCHAR(255) NULL DEFAULT NULL,
+        `text` VARCHAR(10000) NULL DEFAULT NULL,
+        PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci ;

+ 1 - 1
var/etc/internship/app.ini

@@ -1,5 +1,5 @@
 [routing]
-controllers[/] = "internship\controller\ArticleController"
+controllers[/api] = "internship\controller\ArticleController"
 
 [orm]
 entities[] = "internship\bo\Article"