@@ -73,7 +73,7 @@ public static function start($options = [])
7373 private static function backupLocations (ZipArchive $ zip )
7474 {
7575 try {
76- $ locations = LocationsModel::raw ('SELECT * FROM `locations ` ' );
76+ $ locations = LocationsModel::raw ('SELECT * FROM `@THIS ` ' );
7777
7878 $ zip ->addEmptyDir ('locations ' );
7979
@@ -94,7 +94,7 @@ private static function backupLocations(ZipArchive $zip)
9494 private static function backupPlants (ZipArchive $ zip )
9595 {
9696 try {
97- $ plants = PlantsModel::raw ('SELECT * FROM `plants ` ' );
97+ $ plants = PlantsModel::raw ('SELECT * FROM `@THIS ` ' );
9898
9999 $ zip ->addEmptyDir ('plants ' );
100100 $ zip ->addEmptyDir ('plants/img ' );
@@ -122,7 +122,7 @@ private static function backupPlants(ZipArchive $zip)
122122 private static function backupPlantLog (ZipArchive $ zip )
123123 {
124124 try {
125- $ plantlog = PlantLogModel::raw ('SELECT * FROM `plantlog ` ' );
125+ $ plantlog = PlantLogModel::raw ('SELECT * FROM `@THIS ` ' );
126126
127127 $ zip ->addEmptyDir ('plantlog ' );
128128
@@ -143,7 +143,7 @@ private static function backupPlantLog(ZipArchive $zip)
143143 public static function backupGallery (ZipArchive $ zip )
144144 {
145145 try {
146- $ photos = PlantPhotoModel::raw ('SELECT * FROM `plantphotos ` ' );
146+ $ photos = PlantPhotoModel::raw ('SELECT * FROM `@THIS ` ' );
147147
148148 $ zip ->addEmptyDir ('gallery ' );
149149 $ zip ->addEmptyDir ('gallery/img ' );
@@ -175,7 +175,7 @@ public static function backupGallery(ZipArchive $zip)
175175 public static function backupTasks (ZipArchive $ zip )
176176 {
177177 try {
178- $ tasks = TasksModel::raw ('SELECT * FROM `tasks ` ' );
178+ $ tasks = TasksModel::raw ('SELECT * FROM `@THIS ` ' );
179179
180180 $ zip ->addEmptyDir ('tasks ' );
181181
@@ -196,7 +196,7 @@ public static function backupTasks(ZipArchive $zip)
196196 public static function backupInvGroups (ZipArchive $ zip )
197197 {
198198 try {
199- $ invgroups = InvgroupModel::raw ('SELECT * FROM `invgroup ` ' );
199+ $ invgroups = InvgroupModel::raw ('SELECT * FROM `@THIS ` ' );
200200
201201 $ zip ->addEmptyDir ('invgroups ' );
202202
@@ -217,7 +217,7 @@ public static function backupInvGroups(ZipArchive $zip)
217217 public static function backupInventory (ZipArchive $ zip )
218218 {
219219 try {
220- $ inventory = InventoryModel::raw ('SELECT * FROM `inventory ` ' );
220+ $ inventory = InventoryModel::raw ('SELECT * FROM `@THIS ` ' );
221221
222222 $ zip ->addEmptyDir ('inventory ' );
223223 $ zip ->addEmptyDir ('inventory/img ' );
@@ -245,7 +245,7 @@ public static function backupInventory(ZipArchive $zip)
245245 public static function backupCalendar (ZipArchive $ zip )
246246 {
247247 try {
248- $ calendar_items = CalendarModel::raw ('SELECT * FROM `calendar ` ' );
248+ $ calendar_items = CalendarModel::raw ('SELECT * FROM `@THIS ` ' );
249249
250250 $ zip ->addEmptyDir ('calendar ' );
251251
@@ -266,7 +266,7 @@ public static function backupCalendar(ZipArchive $zip)
266266 public static function backupCalClasses (ZipArchive $ zip )
267267 {
268268 try {
269- $ calendar_class_items = CalendarClassModel::raw ('SELECT * FROM `calendarclasses ` ' );
269+ $ calendar_class_items = CalendarClassModel::raw ('SELECT * FROM `@THIS ` ' );
270270
271271 $ zip ->addEmptyDir ('calcls ' );
272272
0 commit comments